Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp452534qtx; Fri, 18 Nov 2022 17:04:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5XaAuulcnJJ+nGtu57HCYZ7ZnGl8rT+dOJ0vyCUhGMMHOl/jUSrr9qEELq3WTz9UM8rP4C X-Received: by 2002:a17:90a:b396:b0:218:8379:89a0 with SMTP id e22-20020a17090ab39600b00218837989a0mr6539691pjr.81.1668819868727; 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=TsMp3Qfv28y9EucFzBk8HijyfwWLfDfYVc1dM6hjc0dT600xMjO+TDqsZwpXGgkMgH j3HSOPWbhH/kjZIlyj6eV7MN0wvg07CJKRQ/Rj5JvsT2Rz4QU8XDpN3Eb2iwwi3TdnXU FtLkw5prRU4eLHEi0zVtRew1FD/HFaxsOJPQKMJkxKgaGgsTxjHJgLEuKnE3nTJnCo7k AOC2urggHk9zZhM+tuGGqd5DcQ1Vo1KLjn3iqCG1Okx8gKUF4M31yKoyT667RkTw4QLs 5KIW246wpZTH2bprydmoHm+z6Pxj68cVKnWrcSxZMntStRCGIT7KMpdIZZKZ5ajJzuPf kkOw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq15-20020a17090b380f00b00212d06b4743si9886170pjb.34.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 S237182AbiKRX7H (ORCPT + 90 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=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Dmitry Torokhov , Srinivas Pandruvada , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Peter Senna Tschudin 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 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 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 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, }; -- 2.38.1