Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp452723qtx; Fri, 18 Nov 2022 17:04:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf5i/55Ab9dKtuQHac8tCkp6NEaI/Kw8WhazKUrzuxZCmQjZVNQsId/Qy8PNxduwfpY2ABkG X-Received: by 2002:a17:903:204b:b0:186:ce8c:e654 with SMTP id q11-20020a170903204b00b00186ce8ce654mr6713pla.89.1668819898327; Fri, 18 Nov 2022 17:04:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668819898; cv=none; d=google.com; s=arc-20160816; b=RN2Bb734MhAzDUrdBlrsHQd7xETub2iVFlGm6dd4F8woSzuXQn/ALvD6kiuWON+K49 WqlV7VBSmEHogU02MDTU9I28Oc4EoaLqeOg1xca+MCvC7pf8ylcGp338NbBWie7FkSXY V8wThujUINSfphlm/m23hHRSVO9fdY+myJDgMnWoF4QaFgmCNYtapznzWP8SG3UvF8cV akPzjUOanGgsm3DOy0T9mcMN9EJCMF0wZuDc3iwmuw8tvrst8HF5ftcWHu7RUVXhCuHK mruQDHhH8KlPI/2BbxYsU5sL4tO1yBdK0WQfvFkNrmwEXNNF+IcTOGrym1/TvvqATv+6 QBWw== 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=h5Cb1Q99j2QxS8F5hwI8zLCOdwdYGiqPMdraUfxA4IY=; b=TILOY6H1Mkr2F5mOdl5U3QI+3HkXXaCJTc9Zq4nK/X1g+IyJEcwcDozuLhw81iQaiM iH5LB/giIew/ZHX1gdhiSqf5MHB8YFfLNtk6FWM+3vNer2AdG/tEoe5rUpn9MyLnueE+ /yH965Pa7a7nxvh8/vvKS5WVVqKyuwNibMQlFE5LG004YIBPpfvD5uBakJS92rpDjrkL /nTxF2txwhX39BZNcGYXDxpbx/ajVFKnABt2vQKTmn7opuFI75w75t8sxqAfyGSLXPBU 4xFbzieo0J1K1TnYstPH29hVFTz7wwhO9JdDZzdqGJyiAUJHCTJTDHRCgJ0jJAh6ftqb W+cA== 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 a16-20020a170902ecd000b0017e6e415520si5429928plh.292.2022.11.18.17.04.46; Fri, 18 Nov 2022 17:04:58 -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 S237258AbiKSAGm (ORCPT + 90 others); Fri, 18 Nov 2022 19:06:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237363AbiKSAGS (ORCPT ); Fri, 18 Nov 2022 19:06:18 -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 56B0EED729 for ; Fri, 18 Nov 2022 15:31:38 -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 1owA7u-00085G-St; Fri, 18 Nov 2022 23:46:26 +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-0058Ck-8J; 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 1owA7o-00Hayp-HL; Fri, 18 Nov 2022 23:46:20 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Andy Shevchenko , Dmitry Torokhov , Miquel Raynal 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 062/606] iio: adc: ina2xx-adc: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:36 +0100 Message-Id: <20221118224540.619276-63-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 .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/iio/adc/ina2xx-adc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index 910e7e965fc4..38d9d7b2313e 100644 --- a/drivers/iio/adc/ina2xx-adc.c +++ b/drivers/iio/adc/ina2xx-adc.c @@ -946,9 +946,9 @@ static int ina2xx_init(struct ina2xx_chip_info *chip, unsigned int config) return ina2xx_set_calibration(chip); } -static int ina2xx_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ina2xx_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ina2xx_chip_info *chip; struct iio_dev *indio_dev; unsigned int val; @@ -1090,7 +1090,7 @@ static struct i2c_driver ina2xx_driver = { .name = KBUILD_MODNAME, .of_match_table = ina2xx_of_match, }, - .probe = ina2xx_probe, + .probe_new = ina2xx_probe, .remove = ina2xx_remove, .id_table = ina2xx_id, }; -- 2.38.1