Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C66DC61DA3 for ; Fri, 24 Feb 2023 12:41:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbjBXMlo (ORCPT ); Fri, 24 Feb 2023 07:41:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjBXMlm (ORCPT ); Fri, 24 Feb 2023 07:41:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 395F267E06; Fri, 24 Feb 2023 04:41:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A3007618D5; Fri, 24 Feb 2023 12:41:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95144C433EF; Fri, 24 Feb 2023 12:41:36 +0000 (UTC) Message-ID: <1782a934-4245-1ba4-0587-e15c90a93cd4@xs4all.nl> Date: Fri, 24 Feb 2023 13:41:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 5/9] media: i2c: ov5695: convert to i2c's .probe_new() Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Wolfram Sang Cc: kernel@pengutronix.de, Shunqian Zheng , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham References: <20230224120600.1681685-1-u.kleine-koenig@pengutronix.de> <20230224120600.1681685-6-u.kleine-koenig@pengutronix.de> From: Hans Verkuil In-Reply-To: <20230224120600.1681685-6-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/02/2023 13:05, Uwe Kleine-König wrote: > The probe function doesn't make use of the i2c_device_id * parameter so > it can be trivially converted. > > Reviewed-by: Kieran Bingham Acked-by: Hans Verkuil > Link: https://lore.kernel.org/lkml/20221121102705.16092-1-u.kleine-koenig@pengutronix.de > Signed-off-by: Uwe Kleine-König > --- > drivers/media/i2c/ov5695.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/i2c/ov5695.c b/drivers/media/i2c/ov5695.c > index 61906fc54e37..b287c28920a6 100644 > --- a/drivers/media/i2c/ov5695.c > +++ b/drivers/media/i2c/ov5695.c > @@ -1267,8 +1267,7 @@ static int ov5695_configure_regulators(struct ov5695 *ov5695) > ov5695->supplies); > } > > -static int ov5695_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int ov5695_probe(struct i2c_client *client) > { > struct device *dev = &client->dev; > struct ov5695 *ov5695; > @@ -1393,7 +1392,7 @@ static struct i2c_driver ov5695_i2c_driver = { > .pm = &ov5695_pm_ops, > .of_match_table = of_match_ptr(ov5695_of_match), > }, > - .probe = &ov5695_probe, > + .probe_new = &ov5695_probe, > .remove = &ov5695_remove, > }; >