From patchwork Fri Nov 18 22:40:48 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: 23058 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp486736wrr; Fri, 18 Nov 2022 16:41:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wbYu8D1cOfcyFfOdRue7/2jBJEf4AY6+2qN64KWjVrdnS4UmL0ks7x/Iu9af24LqUOvWq X-Received: by 2002:a17:906:3a10:b0:7a4:22c4:ade7 with SMTP id z16-20020a1709063a1000b007a422c4ade7mr8094122eje.722.1668818462201; Fri, 18 Nov 2022 16:41:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818462; cv=none; d=google.com; s=arc-20160816; b=ZJ03djpj+uUptCiXI5hbsum24OiGOSfhHMjFRsedQz4TKBcsy7FhCRV0/nuSNAFpTq xwHMm88pgO1JffOFkOFlea8H6zbyp5HtZHYyVahmHj88jXVn+nfHlAFqQk340e9F3j+C Faopnohu2Ej0HPVzjRhe8fK53PFci28eteuSl3ju5S4bvEVd2V1QopyGy01kv8sqOUj4 t35ezCtkOUuOOUf8nmQ7+UOegUUeBXKnaKXTF9X3E3Y+hqzFPdEziWVN12WKi5E2uqui yc4K3TR3KbSbKkKnF+xDG4pUQXykG4wAeZLzU9mrE/j9kz0rlmQ/jPpFFNYafTK7wQ7+ pbXQ== 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=Yl/4QZD+L+sDT1zWoGc83XapnkNTQ14fwSt0h0cG0J8=; b=JeX0ZTUh7XjFLPbaPxkJb0jgDhumRa6vyvi14RqTXVxM8dYuShz/2Pxf+SZwhsjfIV bIF9+fhWOeLujgqvEZL4WQf3S9SRfuJTzHWuakgxYI8qq7teuqOFtfxB6FaRy5KtXPE8 lRC1O9as+ZiJf3PkQxnYQcrT679qhmHpaxyo2hddnZEeRjwFxoh0QwcV+7R7TODpVEtt KVGXh4p3d37CXXkqIc+moHYpOnJcZPmLABqwTusXxZn88TjUTu6C4wjeF+gS0nmElyeh TwlpF/+HhaJrwQ1zdPahh9DcgiXe7yadIC5WS5YDT3kHI5MADGwFQKsePaGJD8Luu34m 7e/g== 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 y8-20020a056402170800b0046938445a51si882918edu.499.2022.11.18.16.40.38; Fri, 18 Nov 2022 16:41:02 -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 S236179AbiKSAaF (ORCPT + 99 others); Fri, 18 Nov 2022 19:30:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235466AbiKSA3q (ORCPT ); Fri, 18 Nov 2022 19:29:46 -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 28F3E110926 for ; Fri, 18 Nov 2022 15:40:39 -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 1owA8o-0002us-Ao; Fri, 18 Nov 2022 23:47:22 +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-0058X0-1k; Fri, 18 Nov 2022 23:47:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8l-0000C5-PH; Fri, 18 Nov 2022 23:47:19 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Antti Palosaari , Mauro Carvalho Chehab 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 314/606] media: dvb-frontends/rtl2832: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:48 +0100 Message-Id: <20221118224540.619276-315-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?1749882987802144144?= X-GMAIL-MSGID: =?utf-8?q?1749882987802144144?= 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/rtl2832.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c index 4fa884eda5d5..900d4db8b922 100644 --- a/drivers/media/dvb-frontends/rtl2832.c +++ b/drivers/media/dvb-frontends/rtl2832.c @@ -1021,8 +1021,7 @@ static int rtl2832_pid_filter(struct dvb_frontend *fe, u8 index, u16 pid, return ret; } -static int rtl2832_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int rtl2832_probe(struct i2c_client *client) { struct rtl2832_platform_data *pdata = client->dev.platform_data; struct i2c_adapter *i2c = client->adapter; @@ -1136,7 +1135,7 @@ static struct i2c_driver rtl2832_driver = { .name = "rtl2832", .suppress_bind_attrs = true, }, - .probe = rtl2832_probe, + .probe_new = rtl2832_probe, .remove = rtl2832_remove, .id_table = rtl2832_id_table, };