From patchwork Fri Nov 18 22:41:36 2022 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: 22854 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472000wrr; Fri, 18 Nov 2022 15:58:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CJsF/DAiO2GUlEkmbjXyj/L23r0ZOyYy09LOhtTkFtogMPhPHBLo4NMYB5LVqoo5Ix2Wv X-Received: by 2002:a17:906:3914:b0:7b2:7e90:53e4 with SMTP id f20-20020a170906391400b007b27e9053e4mr7917353eje.645.1668815939691; Fri, 18 Nov 2022 15:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815939; cv=none; d=google.com; s=arc-20160816; b=PCdthPi+VqRYrFUovkuHFIX9GSZOTnS3x5/bczlZQnE2ZQ2M368/6MV03uHZzVUZrD pMy7TB/u8rhuMxPfB0BetshQdRdq4y1CxbsxOvnKXZS+43NXPpnCasZ4ZaoNymc3XNO3 vorjmXydtH/a0DkxtvE72vVu7RX7rTQsJ9KuIRQKxEFbbkZIP1JPMn3vGV1Q2zpAUyIu lQIrAWQ/Gz9Co/54QgjLmZ+Ra3cNuoHLXoTl+DkyeVhzn+/nOAqLFhrxwbBjY/ukpgWq 4cOn+nT37lbH35QedgTa2b64aLgosXv2TTyQLX57OFwY8r12gaMa+FttObv7tYd7Jmo7 GLXA== 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=kKZH09n9177NMpat8JMMUH0j7jrgHSKOh7k8986SWfE=; b=bDI7rIQ5qmKBG0hTfqbpeYjbdJ0qIV+Jdhrc/XCCw9+cocue8P223al41IHLzZ+wS1 i8ZrTXNDE5ORn1OtQymahaX5vcdjJdnqbCen8k1vMp5i7mcMGpiw47RWQk1JKPQ7ocfv 1zg00WxiuTyAk6KNPL6hlVbM4aoHl6nQm/vHsZgTxn1Nrv9BlguTLNBZpP39oZ3jMhhb 6QQn6Mb+2J1njm572618ea8Qna2OO+X7eUBc/3cles8v0v1iDfOvehidStPc2f+l+q+s B04vvCWfRioSpMKiCGkdi41AmLIfEBrs5HUdLtWxtuHgCUofK6vbNF/kQGF6oZYeaJZs XgLQ== 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 hp14-20020a1709073e0e00b007ae29da29b3si4569752ejc.731.2022.11.18.15.58.36; Fri, 18 Nov 2022 15:58:59 -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 S232774AbiKRXu0 (ORCPT + 99 others); Fri, 18 Nov 2022 18:50:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236806AbiKRXt0 (ORCPT ); Fri, 18 Nov 2022 18:49:26 -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 25C5A82BCC for ; Fri, 18 Nov 2022 15:26:35 -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 1owA90-0003NU-10; Fri, 18 Nov 2022 23:47:34 +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 1owA8x-0058aq-T5; Fri, 18 Nov 2022 23:47:32 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8x-0000GA-Sc; Fri, 18 Nov 2022 23:47:31 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jacopo Mondi , Mauro Carvalho Chehab , Javier Martinez Canillas , Greg Kroah-Hartman , Crt Mori , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 362/606] media: i2c/rj54n1cb0c: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:41:36 +0100 Message-Id: <20221118224540.619276-363-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749880342728000037?= X-GMAIL-MSGID: =?utf-8?q?1749880342728000037?= 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/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, };