Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1282842rwb; Fri, 18 Nov 2022 16:01:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf63g8gnJeXwqylQeEf6y90ayYWEvBnOWs+PwftgAIbx9Z13nQ9CyZEw4kyrqL0NgBly0S8p X-Received: by 2002:a05:6402:528d:b0:468:dc9:ec08 with SMTP id en13-20020a056402528d00b004680dc9ec08mr8309818edb.17.1668816065876; Fri, 18 Nov 2022 16:01:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816065; cv=none; d=google.com; s=arc-20160816; b=pHWPqJXwdzIHU6EoXpLL2JDlTnOL9b//7ik9fqG37ucemDw/+2veOAmYd3LTsr8kVg 3f4QVdqRLGSMeS0/C6PSTVebgIEFrmOiD9EPh/6FEiBjg+cLE5gcKkxIqQF6k73Lpt5i ukI/4uepZMQ4xdBoPSCoXnqd6YDYrBkQ5WOW7DzDuG2gmWGUlHEyifCOSqOoAOHpHSTO 0mLEOMvXz+gFllJ9F6e9XRISW1A6IM33Tw86QOJgFSzSzcGjHg38STz4c1cmCsxo1eqW 4S3M3sQjduB9pw7e/b1NaEOCvYjM00r7Uz4YZmdZhoH9zgIqFL5FIKRIvbYRlqSbFfuw Pkag== 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=2nIQ06MK22EzaCwcLdCBQub12qrkDIYNtAQTO1AY6AY=; b=N/A3W8aKIbsCwZ/76qKwr0YDwWgfVVZShyEaLpqb7NClEKTcdlOhSJ+/tdlsbjlUVo /iFn5I/oGHWlB/lBa/Bww+lwxSzC1Qm4u89h/gzEh6vIx4Ba3kHzZ0rJJCRBhvgYAlO7 mcTVn3G3DNkefQT4dcd5rKhyuZTvLIIq2IMhwwOU+Yrib9SAwiOV/24YuKRVqg2844+T yuAF0sgC3h9A1YDJzsrda5EfzPQckNbXHK0aEKVWNq7D9ZXGZwkpN90w8NSaGtOSiW6I agkYy5q+7iLoeH9l1Qe0+kUEzmZydWd4Hck2RKVGmVlP74Txm5ULmsxOJxNoRnyABh17 L+lg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020aa7d802000000b004617facf124si4073416edq.253.2022.11.18.16.00.43; Fri, 18 Nov 2022 16:01:05 -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 S234892AbiKRXqO (ORCPT + 90 others); Fri, 18 Nov 2022 18:46:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232884AbiKRXpy (ORCPT ); Fri, 18 Nov 2022 18:45:54 -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 37B74D2F66 for ; Fri, 18 Nov 2022 15:25:02 -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 1owA7v-000865-3E; Fri, 18 Nov 2022 23:46:27 +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 1owA7q-0058Cq-Cm; Fri, 18 Nov 2022 23:46:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7p-00Haz9-KB; Fri, 18 Nov 2022 23:46:21 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Jacopo Mondi , Andy Shevchenko Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 067/606] iio: adc: max9611: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:41 +0100 Message-Id: <20221118224540.619276-68-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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/adc/max9611.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/max9611.c b/drivers/iio/adc/max9611.c index f982f00303dc..cb7f4785423a 100644 --- a/drivers/iio/adc/max9611.c +++ b/drivers/iio/adc/max9611.c @@ -510,8 +510,7 @@ static const struct of_device_id max9611_of_table[] = { }; MODULE_DEVICE_TABLE(of, max9611_of_table); -static int max9611_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max9611_probe(struct i2c_client *client) { const char * const shunt_res_prop = "shunt-resistor-micro-ohms"; struct max9611_dev *max9611; @@ -557,7 +556,7 @@ static struct i2c_driver max9611_driver = { .name = DRIVER_NAME, .of_match_table = max9611_of_table, }, - .probe = max9611_probe, + .probe_new = max9611_probe, }; module_i2c_driver(max9611_driver); -- 2.38.1