Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp452533qtx; Fri, 18 Nov 2022 17:04:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf53aSpwj3r6vkgBzR64VchSqBU6O3FgtPqX4/flggO6P6aIq8PFqCJA9wdm5dJdribqR0By X-Received: by 2002:a17:90a:12cb:b0:218:6e30:1a9c with SMTP id b11-20020a17090a12cb00b002186e301a9cmr10911765pjg.80.1668819868512; Fri, 18 Nov 2022 17:04:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668819868; cv=none; d=google.com; s=arc-20160816; b=gsf1q7+BdsWD/2GfdQBxbgWPXB3g1A5C+Wo3MVcbZdz4gRz8YqxrXCalWMs6XPIBOf qDcxaHkknviR7RVurTyFPJIpyyUORH4P99e7zL1d0YEZyL7bCSYBC9vkbzf49wVrUab9 BhEEIkkIgcnp9OcXFe5AiXYVa8SERkzWfXOkJHx4iyIX5PQWvD1yUqB9WvxejfkZWfnV 3p3m2avYb9psjIccVGcwkAEu6wiN5CzmbuYqEdUV25W1xOTsHQ84U28Le6b9ZchrXKIj lS7w76LJEAKixAQnjVTFJqXqIM8HmzDZIW/YTwmUBKfm1L703e9OmgmRh2HOcktT133I b3dg== 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=Ta1GyclG7ij2TZjggZntdvqMc7BR8jo1Tu9JeZTeN+s=; b=z0NBxWcnyD4q7hC/jWEvzISQlsIOvowHytPYehki3NMR7YmbhsIFFN4adVxgB/BxlU 29VaRDZ+roHvSqDCYWSpnIBW9orvPgelWSL01HCRR3nqtaigWh8kP737NtGqZ0HcjqD8 Gli7V/XTdQfpYDYmfSt02ZTOUwfH0Q4ejcdyJYj4nFo47DVsL1xyrkjbgyCoTVjJfujT z670ezbAFvicIiNPGfNL+S4PJfS15qprUaBN8jyrEVc0ksXMfECXQuauBSrrHSsX3gKB YAJL1rZDGl2USsCTvbSpO169TSyua2asLOZCqAhIpa125xs6GAX6Z1JAL2AQ97Ra95Ka JiNQ== 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 rj12-20020a17090b3e8c00b0020a66fc1398si9157634pjb.91.2022.11.18.17.04.17; Fri, 18 Nov 2022 17:04:28 -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 S237996AbiKSAo3 (ORCPT + 90 others); Fri, 18 Nov 2022 19:44:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238039AbiKSAmK (ORCPT ); Fri, 18 Nov 2022 19:42:10 -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 BE3A1C8450 for ; Fri, 18 Nov 2022 15:45:09 -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 1owA8w-0003E6-T6; Fri, 18 Nov 2022 23:47:30 +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 1owA8u-0058Zp-6m; Fri, 18 Nov 2022 23:47:29 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8u-0000FJ-6c; Fri, 18 Nov 2022 23:47:28 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Vladimir Oltean , Corey Minyard , Javier Martinez Canillas , Srinivas Pandruvada Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 349/606] media: i2c/msp3400-driver: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:23 +0100 Message-Id: <20221118224540.619276-350-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/media/i2c/msp3400-driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/msp3400-driver.c b/drivers/media/i2c/msp3400-driver.c index 4ce7a15a9884..12032e28b428 100644 --- a/drivers/media/i2c/msp3400-driver.c +++ b/drivers/media/i2c/msp3400-driver.c @@ -663,8 +663,9 @@ static const char * const opmode_str[] = { [OPMODE_AUTOSELECT] = "autodetect and autoselect", }; -static int msp_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int msp_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct msp_state *state; struct v4l2_subdev *sd; struct v4l2_ctrl_handler *hdl; @@ -891,7 +892,7 @@ static struct i2c_driver msp_driver = { .name = "msp3400", .pm = &msp3400_pm_ops, }, - .probe = msp_probe, + .probe_new = msp_probe, .remove = msp_remove, .id_table = msp_id, }; -- 2.38.1