From patchwork Fri Nov 18 22:37:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 22883 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472283wrr; Fri, 18 Nov 2022 15:59:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4I7Z7nhIUjtdXXyC8RLepbqIS08nRLaHTG1tNhmryoxWnFDy36NZMfAAmNQQAdfLBHTqu7 X-Received: by 2002:a17:906:f753:b0:7ad:b6d6:9188 with SMTP id jp19-20020a170906f75300b007adb6d69188mr7528741ejb.418.1668815996428; Fri, 18 Nov 2022 15:59:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815996; cv=none; d=google.com; s=arc-20160816; b=ej7rlEYCooffvHo+s3Q3rQXPWw9Zv93A50E5B46XJFDS7WcgecnRStmzAGk9Zr6cmu se5odAw5pPTNxVNSHGnm+aGuyf5T0jR64MzJjdOFfYG65iqvkaFAR+kwPKbFAWVSjwpS cynUI8OzAhUdKuhNwvn3Y9KT1XPsCmGCct2+xYwsq8YCaGScxD7Wj924l2IcebApnHLA sZU5tsJuPrdbMWJGTONLmBa6UylBVgvf4XkHyaMHyI9s67oQksvguOicYsidetC1tmom SvP3CjYo9hZcrzoMcqjo/NR4fu1ndy3kRXz2R3g7dv8nviTUTBjcbbZtjbPVFlbnFAF9 2Tgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=KDS5LT+hvQvHYTAiPx9Bwgkl1uBETTMAygxUw9gmSYg=; b=PYGMRvHFBpF9sUWmGyvOVjXATIKmkweITIctPmQZEIWGFlF3oohK2Su+lhVHMNwf87 7NKRfCujwuRAXGxgvIbh1M/4JRrywlRpPKMf/nE5096m7ZbS5EV36fykJZ6Mv6VJpXfJ Rstj1N98/FwWPBEUtRtq9idcGyD6fqeWUecPkvtTHnU+FnGUUuMnWgLTiC2rzruftXn1 MkyWCGprKEwbgHFhoh0Mh4SIuE9TVz2+HM31T3egaQkdt2YEK88jYrpnZ0R5MC1TRMVA uHA0NLlj3IcfaNVF2Z5MUub3JWbsjynRwafT1lwWQBu3a2fuSlv+Gssbgzxn7nj0Y8TB km9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a170906848900b007adf9d69424si3185181ejx.586.2022.11.18.15.59.30; Fri, 18 Nov 2022 15:59:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233062AbiKRXxN (ORCPT + 99 others); Fri, 18 Nov 2022 18:53:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236959AbiKRXvr (ORCPT ); Fri, 18 Nov 2022 18:51:47 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9D19BB9F0 for ; Fri, 18 Nov 2022 15:27:13 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1owA85-0000Og-2e; Fri, 18 Nov 2022 23:46:37 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1owA80-0058GV-4P; Fri, 18 Nov 2022 23:46:33 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7z-00Hb2B-SU; Fri, 18 Nov 2022 23:46:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 113/606] iio: light: adux1020: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:37:27 +0100 Message-Id: <20221118224540.619276-114-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221118224540.619276-1-uwe@kleine-koenig.org> References: <20221118224540.619276-1-uwe@kleine-koenig.org> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749880402403856190?= X-GMAIL-MSGID: =?utf-8?q?1749880402403856190?= From: Uwe Kleine-König The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König --- drivers/iio/light/adux1020.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/adux1020.c b/drivers/iio/light/adux1020.c index 9aa28695e6f1..606075350d01 100644 --- a/drivers/iio/light/adux1020.c +++ b/drivers/iio/light/adux1020.c @@ -774,8 +774,7 @@ static int adux1020_chip_init(struct adux1020_data *data) ADUX1020_MODE_INT_MASK, ADUX1020_MODE_INT_DISABLE); } -static int adux1020_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adux1020_probe(struct i2c_client *client) { struct adux1020_data *data; struct iio_dev *indio_dev; @@ -838,7 +837,7 @@ static struct i2c_driver adux1020_driver = { .name = ADUX1020_DRV_NAME, .of_match_table = adux1020_of_match, }, - .probe = adux1020_probe, + .probe_new = adux1020_probe, .id_table = adux1020_id, }; module_i2c_driver(adux1020_driver);