From patchwork Sun Feb 26 22:26:50 2023 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: 61666 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2124442wrd; Sun, 26 Feb 2023 14:34:27 -0800 (PST) X-Google-Smtp-Source: AK7set902av7PSAtZB+9ipg7TlnIKMzrNsdrQnoh3UpEZWatBmC6CH/m2IbIL+fJkUY7UqPcQp/V X-Received: by 2002:a05:6a21:7891:b0:c0:2875:9e8c with SMTP id bf17-20020a056a21789100b000c028759e8cmr26780095pzc.1.1677450867264; Sun, 26 Feb 2023 14:34:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677450867; cv=none; d=google.com; s=arc-20160816; b=xv7IiIMlnpDyys7svkIsfwpiUrz5lGz5L5V8W6+Vkwke1Uaeg4CfujgM5Bkpb3aq6T PE0DXkFrltjE33h+qKqUGRsFSEXjDSBvvg+1fXRKCkNGvkDSmug1FPrP4fvKDf+rPsi/ SCvMCrYzvOfwmlILbfRKrBVoQJqUAyw99R5ON/ytQe434SuJMS6wQb0ODrLksL9cevoF EJWFHU68GVv/9FYhYpl7vpOaMtndSXHutLTgqCL7vhHi3GDjLFHDPkRy/yrB65IDd2dQ PrUOpGP4Qy2DWh4Fe+aCm9DlRTI6wO73aHYgI4tsRxImc/q0q4slQw9XBR3GoX611n9H vdcQ== 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=jWKe50dI3fItQKd15J97BizI1Dk60c6qVdAKx1yrsJQ=; b=IQBmOlpY0g1p6b5OrsxCQZuoYV3PEbM86aDDxcNK8sGa4U6BBJ+zMO1WaUuHJbY0ep yeOM6EkCJftRMRl+p4fzj3sNPSMQbgkoNjHF+bViD12rV9/qvQAC9VlRi9llHnhGFJzd EYgxykzc8p1n6PJz/T99BhocKpFG3nQK51NJ6YX0EGsdRc0L8Ko9TWWiaSbxycJOrX8a im/o1gw+hCL8bKg5I4PMGdRziVQxbpVLKOpxrbcVNwrefnEio+jqBT8+E18zITX6Tv9E 5tcuB6YGbOgri1W7EH5v6DRIfUGclVHw4d4meXU35oOUYHaTvhp5hb1SHJzR3/xuhtA4 wzXQ== 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 b7-20020a656687000000b004fbd2fbbe11si5056933pgw.12.2023.02.26.14.34.14; Sun, 26 Feb 2023 14:34:27 -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 S229755AbjBZW1f (ORCPT + 99 others); Sun, 26 Feb 2023 17:27:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbjBZW1W (ORCPT ); Sun, 26 Feb 2023 17:27: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 56CD61816A for ; Sun, 26 Feb 2023 14:27:19 -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 1pWPU0-0000v9-TX; Sun, 26 Feb 2023 23:27:04 +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 1pWPTw-000Ubf-F9; Sun, 26 Feb 2023 23:27:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pWPTv-000YPt-N7; Sun, 26 Feb 2023 23:26:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Shunqian Zheng , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham , Hans Verkuil Subject: [PATCH v2 5/9] media: i2c: ov5695: convert to i2c's .probe_new() Date: Sun, 26 Feb 2023 23:26:50 +0100 Message-Id: <20230226222654.1741900-6-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230226222654.1741900-1-u.kleine-koenig@pengutronix.de> References: <20230226222654.1741900-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1261; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=P9qlg6QBcbggriS7J+1m7zrOxMS2j89d2svSwnDX9a8=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBj+9yb9qyVLGhCTDmI4MWGPl3GHVa1A8vwL+TYH yt/aAeTiMOJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY/vcmwAKCRDB/BR4rcrs CZ6KB/9m76K8RmvWuTkH3BxbfaNA6EyB4Ih+n5yutyJch+tFjH/SHeovzTFfP5wnYW66D4IyW01 AjZ4g2d7U1uBVkFJ8JCkMZb5KusCiNPYqNGEYEdSKgM8CqjsmWG9GlFVOA8B5p1pzEtR2XOZ91H mlwCmNOnGD2FPs44YFzxOGsnV88ZHmDqrBA8mD1XvR5bNQy6wpyk7UdX6EnTWZKXJ9KxxtSTE6f m7lNpjJq1m8artykh+xCPBHDl2ywuV1kPPerc9UVPboJXabgsPCYU4et/0h4mdPcnjr++Zcte3P kdijJmSG6BjGwYZEcVkjENSt5Nz2V4Om0abrGrdQkZN2BeLB X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 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.2 required=5.0 tests=BAYES_00,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?1758934720832359506?= X-GMAIL-MSGID: =?utf-8?q?1758934720832359506?= 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, };