From patchwork Fri Nov 18 22:42:10 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: 22678 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp461603wrr; Fri, 18 Nov 2022 15:27:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5HgUVf20f71TS6ZqN9rwepkkF/jHR8zRzOhMFpram0+L/Li3RiKeWhVTVNE5Yzo+FTR9qR X-Received: by 2002:a17:906:6d03:b0:78d:9d0b:a9f6 with SMTP id m3-20020a1709066d0300b0078d9d0ba9f6mr7984950ejr.661.1668814058692; Fri, 18 Nov 2022 15:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814058; cv=none; d=google.com; s=arc-20160816; b=P6sKoGFtMvRLPSrRSM5ePpnt7w/wPDPgaXI8oJsDFFerBiGsW4MuSSfcYfS2lGeZct YFcIp96I16W5i5v6b8ewZ+8p7FspLQI77Z4O6jPwCY6h7RnVEaKqSl5v7MMxgNiy9tlQ Q/ulWClJJbe11pXlDERzSDH0BrTfBnAeoufsk0RnhY+MQ6R4xLlKfqlG9BKxV1LHyfGx aHp6bZncwAGAW0FWvIi986SaOn3n/kT+uYd30W8uaI0A8/IGqLCcjFcHL3O98fZ2xJ1+ 3XdOsXaiJqDch6wmkQRAsRDjpr7sXbeDQstDUuxo5i+lj46FlL7JjFN6Vx1dX3VtJnTz LXmQ== 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=ghoz0an/lTJ+jLGR+QB66KGRUiUH0sRAJaEJcv0f1jE=; b=XR+YhDEYpj2r3Xt2RaG3Fg/d3+SVJK1kDUeQC0VpJaDv8dT/Cc/VHME4H/kQcra2DX uReiwcFSCvm9cw55CG+WFxwNE8JJmpsa1mLMeAUT7kiOV0J0CAMIJRXEfQt+aMGsEYmR DP6/T6E3dxwb2ZXHGRC5kQ/VFnCIf7DflHwOdreX2lJ83zSB3UktJ9sRBLFnG4Vvd5xA PegEimzeZv28KM4N815cHnL/RAI6mz2KqH/JlkEbUzs5LYCF4B9mibuOOmPHjK8bmH+A If7aN+R/1jbz3nczEE5V1y+F0rdS8/Q16iqHbOVnAb+p8duAKB6aXsmRPdC5rFhnbkXQ 9WKQ== 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 x11-20020a056402414b00b0044f2fb68fe6si3906023eda.495.2022.11.18.15.27.14; Fri, 18 Nov 2022 15:27:38 -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 S235600AbiKRX0B (ORCPT + 99 others); Fri, 18 Nov 2022 18:26:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235587AbiKRXYH (ORCPT ); Fri, 18 Nov 2022 18:24:07 -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 2191757B56 for ; Fri, 18 Nov 2022 15:14:12 -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 1owA97-0003hl-Ew; Fri, 18 Nov 2022 23:47:41 +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 1owA95-0058dV-4X; Fri, 18 Nov 2022 23:47:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA95-0000IZ-BU; Fri, 18 Nov 2022 23:47:39 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Peter Senna Tschudin , Vladimir Oltean , Greg Kroah-Hartman , =?utf-8?q?Krzysztof_Ha?= =?utf-8?q?=C5=82asa?= 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 396/606] media: radio/radio-tea5764: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:10 +0100 Message-Id: <20221118224540.619276-397-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?1749878370469936872?= X-GMAIL-MSGID: =?utf-8?q?1749878370469936872?= 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/radio/radio-tea5764.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/radio-tea5764.c b/drivers/media/radio/radio-tea5764.c index abda40e81612..2cb74afba49c 100644 --- a/drivers/media/radio/radio-tea5764.c +++ b/drivers/media/radio/radio-tea5764.c @@ -411,8 +411,7 @@ static const struct video_device tea5764_radio_template = { }; /* I2C probe: check if the device exists and register with v4l if it is */ -static int tea5764_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tea5764_i2c_probe(struct i2c_client *client) { struct tea5764_device *radio; struct v4l2_device *v4l2_dev; @@ -512,7 +511,7 @@ static struct i2c_driver tea5764_i2c_driver = { .driver = { .name = "radio-tea5764", }, - .probe = tea5764_i2c_probe, + .probe_new = tea5764_i2c_probe, .remove = tea5764_i2c_remove, .id_table = tea5764_id, };