From patchwork Fri Nov 18 22:41:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 22930 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474525wrr; Fri, 18 Nov 2022 16:04:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7WMmhPjb/BpLo8u7UYm73pYAIF5AAKp1osLsICetzsZdmH6sEYk2gdwPeVockuYJ3rHH02 X-Received: by 2002:a05:6402:399a:b0:468:fdf2:477f with SMTP id fk26-20020a056402399a00b00468fdf2477fmr5760986edb.329.1668816265470; Fri, 18 Nov 2022 16:04:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816265; cv=none; d=google.com; s=arc-20160816; b=TATPg4l2/2PTsbnuRszBCmNMfPPXaKIaQ3M9iIUVz40tf88wyqQCm8BcVgDA/06mg+ tz2BhBmsZjoOhhqgWsSSgXOyg0voaw51heN5GhEAot2OAe2FCCz8y/Zu6ZzlcbTE2gRH OyA9XhgrhqIrKXSHSeIroxe2EOoPWSQtSttgQNLyKVQiS5grS3Fav+4H32r4pa9IOfoe hUW6Mk/3RhjDAu+nI0K9JQ+DQUn1a6RypNX5MSVyEv8TzaFCF422EFIAQz2c/O6gnHA+ FGR67q+i0Bnb3f1xlxT9KMZza7QUm2veDNmveHz2h3uPcVsEUYDSfRTUFwF/1CqUcMoP p+0A== 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=qJDj7Qe9fQFPZLYoD8Sl2uaztXQU2bYUpAi3iShm7uU=; b=GFyq+uu4yBs5SIUY+GS6pPQ/4xRixlga96N9RaySVyb7fUXMMXkcZnLPSvxo8AyCVh muDgkZUinzrrgt8yvzmyHUEgfZLAidGYqVjHlCkJ6dZrEzhV1ifJ38SuAZHaU7ZaXrFG Qzln8/6VhR5byaqJ6O7evDWMnNV2CwYRghJLw2jGRzrbsJ6z26Fukjf/vzNc7NPY3zZZ 4kKEff1mMPdjIMltDD8kldaby9LcJZDpJZAIHqEj4M3wNcNzcEKrd8zee9NJan/i1DWP JUbdlSoyX5G4Q6U0hCRFWgGU7lCr3V03y6iGwUrkCVVtsF+kufHMf4jnqrxgVXtSIzQB IIyw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i34-20020a0564020f2200b0045d5ba4c3cesi4275513eda.47.2022.11.18.16.04.00; Fri, 18 Nov 2022 16:04:25 -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 S237182AbiKRX7H (ORCPT + 99 others); Fri, 18 Nov 2022 18:59:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237079AbiKRX4W (ORCPT ); Fri, 18 Nov 2022 18:56:22 -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 D4859CDFC0 for ; Fri, 18 Nov 2022 15:28:23 -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 1owA8v-0003Ca-MF; Fri, 18 Nov 2022 23:47:29 +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 1owA8t-0058ZV-Em; Fri, 18 Nov 2022 23:47:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8t-0000F7-Ip; Fri, 18 Nov 2022 23:47:27 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Dmitry Torokhov , Srinivas Pandruvada , =?utf-8?q?Krzysz?= =?utf-8?q?tof_Ha=C5=82asa?= , Peter Senna Tschudin Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 346/606] media: i2c/m52790: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:20 +0100 Message-Id: <20221118224540.619276-347-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749880684643023613?= X-GMAIL-MSGID: =?utf-8?q?1749880684643023613?= 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/media/i2c/m52790.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/m52790.c b/drivers/media/i2c/m52790.c index 2ab91b993c33..0e6507ab7e08 100644 --- a/drivers/media/i2c/m52790.c +++ b/drivers/media/i2c/m52790.c @@ -129,8 +129,7 @@ static const struct v4l2_subdev_ops m52790_ops = { /* i2c implementation */ -static int m52790_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int m52790_probe(struct i2c_client *client) { struct m52790_state *state; struct v4l2_subdev *sd; @@ -173,7 +172,7 @@ static struct i2c_driver m52790_driver = { .driver = { .name = "m52790", }, - .probe = m52790_probe, + .probe_new = m52790_probe, .remove = m52790_remove, .id_table = m52790_id, };