Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp452477qtx; Fri, 18 Nov 2022 17:04:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7TqQ4CCXxZlqagbSoz6xq2OHalQ9q/z16bJbeykSKvPy2CLh/cmu3fbjgKH619bg3KJ0YI X-Received: by 2002:a17:902:cac4:b0:188:51c0:705 with SMTP id y4-20020a170902cac400b0018851c00705mr1946362pld.62.1668819858523; Fri, 18 Nov 2022 17:04:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668819858; cv=none; d=google.com; s=arc-20160816; b=eaNPSWLon/uCd1R4x20ZYSe1kmowAlhDR7HIr/qVOz+T6kzQqcoAq0eyv/76A9nE2n 553acNM2UK+lR/Re6mQoRwcDfUJvPNveM9Xr9Q2tueVldzKbs7eeQCsUzqUOapPfKk0+ Mo2azOCk4KnF9PGYnHfVbcsIARyEIfagKaDRphWNcsxRNVLO/ZXFGwrDLQ1m3rwu7r0W wZ+/2C9erLDXggfSkZy5S/U7ZuwlP9ehhbetGggWiniOmmxBcd1PQN3Oomb7lWHA+ElA gT3EWc0wC7XKyWbUuM2NLl+V6UlFvIoiKoimbTWfE1wAGkp0CyQDy741zPNNgsDm6PK1 xF+w== 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=Re3jTJPsj437JPs77Io4rfhlklaO9tl4iA89zhNsWGw=; b=nBcNNh+j+IyqVPDifPNFV9CTvg+Ocz5sS5rnUEOMWr8WwEwvx3Smh9TfIvEV9Ddg2k KQzDdD2USzbT/LAaqKFj24UxBJ5wkAN6gCl14szK9eMryeewHasjwrfze8xMMPfPFtRe 2kKgOibJEB9FXL0EUUIy1qIgJ1JFWIkIT6lGBoDrhClQjwFjlyp4w5Z0j7k4KeBV7Ik1 Q8eNQrcvLvx0MGoHH1xwoxtyXV19yda7rixZZDaLbGPcap6tebDg1rF4crW5gY79bhJL rNE5Sv8Q/twNJGTyxsZmUptFrJ8WQzm3eWCRnEmPhm31f0rc9fANjegp9NZBO3Ttzw34 8tXA== 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 l2-20020a170903244200b0018862b7f8bbsi5541667pls.198.2022.11.18.17.04.06; Fri, 18 Nov 2022 17:04:18 -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 S231669AbiKSASz (ORCPT + 90 others); Fri, 18 Nov 2022 19:18:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238370AbiKSARo (ORCPT ); Fri, 18 Nov 2022 19:17:44 -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 B4D2AFAE8A for ; Fri, 18 Nov 2022 15:35:53 -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 1owA9U-0004iz-0C; Fri, 18 Nov 2022 23:48:04 +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 1owA9R-0058mW-DM; Fri, 18 Nov 2022 23:48:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9R-0000Pu-Mr; Fri, 18 Nov 2022 23:48:01 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Linus Walleij Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 510/606] pinctrl: mcp23s08: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:04 +0100 Message-Id: <20221118224540.619276-511-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/pinctrl/pinctrl-mcp23s08_i2c.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-mcp23s08_i2c.c b/drivers/pinctrl/pinctrl-mcp23s08_i2c.c index e0b001c8c08c..b635c5737e0c 100644 --- a/drivers/pinctrl/pinctrl-mcp23s08_i2c.c +++ b/drivers/pinctrl/pinctrl-mcp23s08_i2c.c @@ -8,8 +8,9 @@ #include "pinctrl-mcp23s08.h" -static int mcp230xx_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int mcp230xx_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct device *dev = &client->dev; unsigned int type = id->driver_data; struct mcp23s08 *mcp; @@ -100,7 +101,7 @@ static struct i2c_driver mcp230xx_driver = { .name = "mcp230xx", .of_match_table = mcp23s08_i2c_of_match, }, - .probe = mcp230xx_probe, + .probe_new = mcp230xx_probe, .id_table = mcp230xx_id, }; -- 2.38.1