Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp446846qtx; Fri, 18 Nov 2022 16:43:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf7AcvUgBrgrUVaaXj3WJ+z2pIYno5EbzpKk6iI/Fs/TACqMyUCogCIqvqh2tH8IwcQfocQ0 X-Received: by 2002:a17:906:9255:b0:7ad:c66e:ad9d with SMTP id c21-20020a170906925500b007adc66ead9dmr7636241ejx.413.1668818609950; Fri, 18 Nov 2022 16:43:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818609; cv=none; d=google.com; s=arc-20160816; b=bmLE6jeGMPYCAf4Zjiz74hRaR+mmC01xFPlk5Sugybwq6rAlkDMRb17jEZnVZrn45J DN0Uw7FfydqOZCIUWtg5g7PUu77OLglBXPOABv5wyusGjgeH8WNGJKxFRWjG2ISh0SLh NeHpwhJHluB2IlpqHFQgBx06bmTcNrWu1BxyTYf8QNbo8OKTDtL7zQPIoNYy4/VPm0nu 8BVC9zL6YY2RVVaPtJctIk9zOs5AhqxvB0vCkkqCuGzy5dd1cKIRNe3D0Q1VrwAVxqRW +zbJdxw15bEpvbX0ZgMrtiN1PtFSfYnRkzsbMzBrws1B52Kjw6/FEw28yqzlK6vMiCNs ENyg== 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=45XKCB+qf+0jKliD9Sa20koRVq4XUB5Kq81Us0WndrE=; b=zN7KRv8YFQfv8k0NWiK7YfJdbzG5uzIjCXGLt8DBhLTMuhLyU4W1fCKX5kAVRtd1/s 4qqIci/T4rUDVtHRMysn/+2RIT+w99GTMP023WR+iX3AwVNKu9fbw2EMDnl5C5lvv7nu i847i2ySmaTog9z9awlufsp+o8cU7V6dQcreNLnyW8H/LunkY+orpKAMxtHxg/d74W3o LlfQ482F7WmO9IowaI1KtXtEPFjvzGEm5Hmdt9WV2rr0zYgvwwCXjEVbNp1/X494ZHRY 11t8y+8fw72P8nKgNUAVuwQ6ghzbq3r2lcE7NFZFzwti+UciC19DOUaXGLEjzCoG9H2p b9Hw== 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 d5-20020a056402144500b0046906b7a5c8si2883025edx.559.2022.11.18.16.43.03; Fri, 18 Nov 2022 16:43:29 -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 S235494AbiKSAh1 (ORCPT + 90 others); Fri, 18 Nov 2022 19:37:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234926AbiKSAgL (ORCPT ); Fri, 18 Nov 2022 19:36:11 -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 616738FE63 for ; Fri, 18 Nov 2022 15:43:24 -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 1owA7w-0008DB-E0; Fri, 18 Nov 2022 23:46:28 +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 1owA7r-0058DD-NL; Fri, 18 Nov 2022 23:46:24 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7q-00HazQ-I1; Fri, 18 Nov 2022 23:46:22 +0100 From: =?UTF-8?q?Uwe=20Kleine-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=20Kleine-K=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 071/606] iio: cdc: ad7150: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:36:45 +0100 Message-Id: <20221118224540.619276-72-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/cdc/ad7150.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/cdc/ad7150.c b/drivers/iio/cdc/ad7150.c index 1113745890ca..79aeb0aaea67 100644 --- a/drivers/iio/cdc/ad7150.c +++ b/drivers/iio/cdc/ad7150.c @@ -536,9 +536,9 @@ static const struct iio_info ad7150_info_no_irq = { .read_raw = &ad7150_read_raw, }; -static int ad7150_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad7150_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct ad7150_chip_info *chip; struct iio_dev *indio_dev; int ret; @@ -647,7 +647,7 @@ static struct i2c_driver ad7150_driver = { .name = "ad7150", .of_match_table = ad7150_of_match, }, - .probe = ad7150_probe, + .probe_new = ad7150_probe, .id_table = ad7150_id, }; module_i2c_driver(ad7150_driver); -- 2.38.1