From patchwork Fri Nov 18 22:40:53 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: 22801 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466815wrr; Fri, 18 Nov 2022 15:41:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4e0WCBNQA32d5z3mGtOuh9Vz26uPwZtkq7FOCFTI8wneM9h+4m1vltgaAuO4S6CU26qCIy X-Received: by 2002:a17:906:560c:b0:7ae:5884:81b1 with SMTP id f12-20020a170906560c00b007ae588481b1mr7777753ejq.155.1668814867956; Fri, 18 Nov 2022 15:41:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814867; cv=none; d=google.com; s=arc-20160816; b=xQ7E9zEJAvTnvjAYRqE0mbL9OgmFrFBiAJFFynT80/qPH/ORZS8TEFrdMbRZers0DV lm582wgkPFm7VcJTqBnY1RusDUYhkPlxVq3EtHMi00MdxjKNaShtJ48xhhhW/zJwlBZT bHZIQ9Kym2ud4mvMpxP+FLS0hM97FwMfOLwYEa+2X07WR95+WSGwG92lrTgcVa3xjV7g sy8f8ynwvzVUXrKgxLZRE/BIlLZfHPIF7vrBr5ZRyC+UqAebyqQI8eaKyIyQ40vhAauY vCYtmVptncUSDVvp98XRCQdqHfIKgyHXeirup0w0qfTNq00nVrS8oip/6b2E//NbB6Ab dq1g== 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=ak6hkxRwepZ1cqcMTJTna96DneAtBy2lN6dZ/XH8W4Y=; b=bmH0X+GxIJ/sVheNezvsKxJHfNIHLxtpcK38jiOTBvCuQ1nhqVkJ/EFUT2JDDRNx6j HH0NNlQ1m8FfgCpb3adxO9/584tPGexk7gHzAZJ0GQ1J+gm46DwKxjgUVQKXxqFjnq1S PF3dtMfxxlLTXQwhIUV6SGKK8D4AHWwcJauRPw8OXF5DhI+YdPjfJX6aoUHjunVCByrk QamoylYflbpF60ihFDRZoDyl7X/VsF3UWoWGPFKVQtFdtwzbm2RDtvaZWL2EUX9UAMp4 71NZ/2LpPFB/B0ezim8rFTXcHj0RmhAAH+2IGPprl6Z4fgoXzCagzo9XtDdH15d9DF2n GQlQ== 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 xf4-20020a17090731c400b00730a4246dd0si4967213ejb.593.2022.11.18.15.40.44; Fri, 18 Nov 2022 15:41:07 -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 S236525AbiKRXjx (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236766AbiKRXhw (ORCPT ); Fri, 18 Nov 2022 18:37:52 -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 771DD6D96F for ; Fri, 18 Nov 2022 15:22:27 -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 1owA8p-0002wp-Kq; Fri, 18 Nov 2022 23:47:23 +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 1owA8m-0058XE-Uc; Fri, 18 Nov 2022 23:47:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8n-0000CO-03; Fri, 18 Nov 2022 23:47:21 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Mauro Carvalho Chehab , Dmitry Torokhov , Javier Martinez Canillas , Peter Rosin , Miguel Ojeda 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 319/606] media: dvb-frontends/stv6110x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:53 +0100 Message-Id: <20221118224540.619276-320-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?1749879218623113399?= X-GMAIL-MSGID: =?utf-8?q?1749879218623113399?= 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/dvb-frontends/stv6110x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/stv6110x.c b/drivers/media/dvb-frontends/stv6110x.c index fbc4dbd62151..b2f456116c60 100644 --- a/drivers/media/dvb-frontends/stv6110x.c +++ b/drivers/media/dvb-frontends/stv6110x.c @@ -406,8 +406,7 @@ static struct stv6110x_devctl *stv6110x_get_devctl(struct i2c_client *client) return stv6110x->devctl; } -static int stv6110x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int stv6110x_probe(struct i2c_client *client) { struct stv6110x_config *config = client->dev.platform_data; @@ -481,7 +480,7 @@ static struct i2c_driver stv6110x_driver = { .name = "stv6110x", .suppress_bind_attrs = true, }, - .probe = stv6110x_probe, + .probe_new = stv6110x_probe, .remove = stv6110x_remove, .id_table = stv6110x_id_table, };