Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4230955rwb; Mon, 21 Nov 2022 05:25:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5wcfUr3SXsUsiN3QMnAa61S8cjd2Juac00wZbF/h9ExMOpv5/yxrAGCewvup7L86EwJ0Ji X-Received: by 2002:a17:907:8c0d:b0:7ae:70f9:114 with SMTP id ta13-20020a1709078c0d00b007ae70f90114mr15206054ejc.44.1669037108050; Mon, 21 Nov 2022 05:25:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669037108; cv=none; d=google.com; s=arc-20160816; b=ToN9bgvShmYWYCKGJeDY220jlMGxmqlPWxlJnx/rabdfO4MnR2Gszr+JOWYl1LCyTx Z2z1OQHq6HPs3r4a8LmoWsxYKwbgK6JO9WckQODARDqH2/tNX3faAJgw7gQK0wzMhiHy TliXmugjBmuBBRbYKZPkkDo5QcGobna07DrHt2V+ICKNxrRXRHr2HCP38K1/Pz/qnqSQ 3EI+dgaHzu6pLtaeHLb47pQM9evifGQZas8j4quqbR5AxjAv2qN3R/35MGd782k5YAlQ gy+JNYY8/kqxHMGVcKkvWceWhGUGn40V67THPtenVmf4snKq9KuARBCmi5Obtl5z79hF ikEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=st5EfFAXOPkmsGrUYgPZcmBZsAk7Kc7D8ktKuGdFMsk=; b=xIgihyEAo5E7uf1OhgRJD3YGe9dybVJRPzfwuVqPPB3eofpWBKrnxL6mvk+fqt+JvY OCbd4P3/NfdcPqGjWZQr4xCjel6G6d0OXboTZnOetcw7LbeVrK8Hg6baUsDY3YvDP5Os yXKc0dqW8tsEJAOFXQFRi9j0Yd3mLScSnkLL70FiWmoKxgUGwjVybUxb7vgczfsBVq5L dV+3zx+Ltvz7JAEPjZCGXEi1GxbIYhQk6mPQH3soO42G7PBrZewDuTbotVImb6DQu9f/ QeFT3KkOVKGArQJ1ucg6FHooceaWp0mThJjiKETW7C5RyAdPSq0EnYfYwqHLKWL4/X/q aYWQ== 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 k9-20020a17090646c900b007a7d22b9e0bsi8059543ejs.133.2022.11.21.05.24.44; Mon, 21 Nov 2022 05:25:08 -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 S229907AbiKUNDp (ORCPT + 93 others); Mon, 21 Nov 2022 08:03:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230320AbiKUNDj (ORCPT ); Mon, 21 Nov 2022 08:03:39 -0500 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9519CC54; Mon, 21 Nov 2022 05:03:38 -0800 (PST) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id 02CB4240012; Mon, 21 Nov 2022 13:03:33 +0000 (UTC) Date: Mon, 21 Nov 2022 14:03:33 +0100 From: Jacopo Mondi To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Javier Martinez Canillas , Greg Kroah-Hartman , Crt Mori , Marek =?utf-8?B?QmVow7pu?= , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 362/606] media: i2c/rj54n1cb0c: Convert to i2c's .probe_new() Message-ID: <20221121130333.5mypzf67cki6f57f@uno.localdomain> References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-363-uwe@kleine-koenig.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221118224540.619276-363-uwe@kleine-koenig.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Hi Uwe On Fri, Nov 18, 2022 at 11:41:36PM +0100, Uwe Kleine-König wrote: > 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 Acked-by: Jacopo Mondi Thanks j > --- > drivers/media/i2c/rj54n1cb0c.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/i2c/rj54n1cb0c.c b/drivers/media/i2c/rj54n1cb0c.c > index 1c3502f34cd3..9db5473daba0 100644 > --- a/drivers/media/i2c/rj54n1cb0c.c > +++ b/drivers/media/i2c/rj54n1cb0c.c > @@ -1297,8 +1297,7 @@ static int rj54n1_video_probe(struct i2c_client *client, > return ret; > } > > -static int rj54n1_probe(struct i2c_client *client, > - const struct i2c_device_id *did) > +static int rj54n1_probe(struct i2c_client *client) > { > struct rj54n1 *rj54n1; > struct i2c_adapter *adapter = client->adapter; > @@ -1422,7 +1421,7 @@ static struct i2c_driver rj54n1_i2c_driver = { > .driver = { > .name = "rj54n1cb0c", > }, > - .probe = rj54n1_probe, > + .probe_new = rj54n1_probe, > .remove = rj54n1_remove, > .id_table = rj54n1_id, > }; > -- > 2.38.1 >