Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4225276rwb; Mon, 21 Nov 2022 05:20:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf7eHFNaVQtKvIvE62vwoCyxoe6bwwaccb43P8VHh4FC0cb8qjjAjr9aSmyCxAxn0ni9VnrG X-Received: by 2002:a17:906:844c:b0:781:aff3:c68d with SMTP id e12-20020a170906844c00b00781aff3c68dmr15909187ejy.36.1669036854076; Mon, 21 Nov 2022 05:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669036854; cv=none; d=google.com; s=arc-20160816; b=EtW6OnKQ+q6IdnDBObS0kDxbbj1rczu5jPAHxXEK77Z0AF+YigYRhGEmiMwh3+8RHH 7hu9Ck5AfE0uB1KD4lexSY+NVZ08hsrrh2OGn3HUeGCsYa+UvbCCLFg9khEeikMgtk2v yIwfDDmYxuf2Df1BC1fIIaUpkn0u1GMcpW56aZSkHJSSw4h7gUvnnvq4Vp8AZYlOe1qf N5Ecfw98tVDw61NV10vXWH/hN07Wy69pPVC88LY8i2F1waFum60qXxXKiQHewbZVUlzH PIXRxj0kf4/Dr0HLVvr0eeYycvd2fHDRGbsSGTSvhjxk5cvDNXNHDxlxupLfJknk/OTZ W+qA== 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=tYcNraC75rlabj43bvsBfzusFMvf4cBupY+sXeirvmU=; b=go6qrCnYCokpTtMQqHXx+ceI+1oAG2F9Tx/7FEvEbbF90Jcn62GnZmAAee96k4usg9 Fl55QzQKwLYo8Ja7OlB4mNIm8JFGwPpZHX2yOXzury5N8IEV0fxOxVLbjpJ4QrhwiasB xLZgv7tnp27vr2qvTd4X08r6wv5DEtIKMOC1yhSWtXQ8ayh/ANuieb0ZYSmUqdpWdlpe DMYVe6mcMt0RJg5LBgI3XDwhYWc0TP6SlP+u7N5hcLwD1Ijlmm4d8WQYEt4njCiiwMk/ 3JqClSE6b13DUxlc8zyPSClNBjwFN/4+brCmYiY1jnQTIT26TxeMgLj1IC2aY4eiVS/P xOfA== 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 nd22-20020a170907629600b007ae4717bf08si10709053ejc.359.2022.11.21.05.20.31; Mon, 21 Nov 2022 05:20:54 -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 S229970AbiKUNDl (ORCPT + 93 others); Mon, 21 Nov 2022 08:03:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230267AbiKUNDG (ORCPT ); Mon, 21 Nov 2022 08:03:06 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF13F1704B; Mon, 21 Nov 2022 05:03:04 -0800 (PST) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id B09CE240008; Mon, 21 Nov 2022 13:02:57 +0000 (UTC) Date: Mon, 21 Nov 2022 14:02:56 +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 , Jean Delvare , Ajay Gupta , Hans Verkuil , Miguel Ojeda , 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 353/606] media: i2c/mt9t112: Convert to i2c's .probe_new() Message-ID: <20221121130256.hxcklmvitodck76g@uno.localdomain> References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-354-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-354-uwe@kleine-koenig.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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:27PM +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 > drivers/media/i2c/mt9t112.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/i2c/mt9t112.c b/drivers/media/i2c/mt9t112.c > index ad564095d0cf..a82f056787b8 100644 > --- a/drivers/media/i2c/mt9t112.c > +++ b/drivers/media/i2c/mt9t112.c > @@ -1060,8 +1060,7 @@ static int mt9t112_camera_probe(struct i2c_client *client) > return ret; > } > > -static int mt9t112_probe(struct i2c_client *client, > - const struct i2c_device_id *did) > +static int mt9t112_probe(struct i2c_client *client) > { > struct mt9t112_priv *priv; > int ret; > @@ -1120,7 +1119,7 @@ static struct i2c_driver mt9t112_i2c_driver = { > .driver = { > .name = "mt9t112", > }, > - .probe = mt9t112_probe, > + .probe_new = mt9t112_probe, > .remove = mt9t112_remove, > .id_table = mt9t112_id, > }; > -- > 2.38.1 >