Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1317306rwb; Fri, 18 Nov 2022 16:37:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/I4IS2IqfCxHYtUJSBaSr3NYfAzOD3twi+Iu67CLTNgzV3YxA3QPromwrhecBhn2IyPZs X-Received: by 2002:a17:907:2a08:b0:7ae:76a4:e393 with SMTP id fd8-20020a1709072a0800b007ae76a4e393mr8116785ejc.743.1668818257167; Fri, 18 Nov 2022 16:37:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818257; cv=none; d=google.com; s=arc-20160816; b=aFfeH4FVNrG4JA84GBMwbkqSYm0WBwlLeYDVRcJQOMdApZbNMWrYs9/sSnKIl9nV+Z OFK4xvANsuCo89g8JxPJfJ6STDjVd/q9n9OeZaq4OB8E8QDwVmGrHF13o20TxRp3xcsg 62nqcA0OW75NF/ebHMqAyuFwCk0oY0aBM0tu0I95hMRZtGXBlJ3SFwdydTtqjwDfch4Y cSBzitlYtZvADjNdsWMd5l/oTDTMuEzYj9rZY9u8Q5B3NQbNqf7m/Z/jm1gRRSouC0Xo AvgsgejjJ5NOBLLUErUYKIqcjMpgTXlrsWoxE2eBa8ZeUuJMkLlPippxbk22EN7AlZxZ EJFQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020aa7c94c000000b00457263f9ee0si3648821edt.93.2022.11.18.16.37.15; Fri, 18 Nov 2022 16:37:37 -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 + 90 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=20Kleine-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=20Kleine-K=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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 --- 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