From patchwork Fri Nov 18 22:40:34 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: 23125 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp488301wrr; Fri, 18 Nov 2022 16:45:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4hgEBRn7UG4+pL4MKo3D5bRwIBN3JLzsTwskNFuQBAWSns/5MJa8wYi+OKpOrA+Su/NVwv X-Received: by 2002:a05:6402:5:b0:459:cdb:92ad with SMTP id d5-20020a056402000500b004590cdb92admr8147286edu.77.1668818616568; Fri, 18 Nov 2022 16:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818616; cv=none; d=google.com; s=arc-20160816; b=PtD+jfRuO7rxqr6cHialFDzd0/TlUjTLd4AaKH+jswPwyPMHnpHE4fYv1CYbCZKK8K qDTSeDNdp3jsYTwu2eW1erZoeHOmbXCXRGU5S9aSe35t2frghUUHPHAR/1zUyjYyClDa 1vpwG/fW1aBv8b++tRHdcYLr12T+9eA93xNXHVcEVTDMKiJUyfNBj/GJHqrOJWVliAs+ ARJfsbqIJUzNwWmb8jctFZ1qBcnFHGquGQ2iI7/OTa/Ptde5F279vO6SNjUrAlEmZGsO 38RAKF2Y4LhArHwFnzXqU0BLm+D3yRnKM63+B8kHGtRr+xWtZGDPGbxJxE5a6WNJqx1P gB9g== 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=0LneK1b7iFk92U2p/R0mQSEKaII29IAduceO0QSn+Sg=; b=WJYF3/YVBRRlsqpXbyGRFs0/kppzvdFscDlfVJpow2QNHXd/8W90xT0hKVXyQbEY2t GiWOj7zhYMy7SK43TcEPJGFItGu1GzVo2yi7Owd3eHiym0jki+RibEVRyoXMewG7aZO4 oZYCE2STYSpDyFM3UvMW3k4vUWTkDQs3UamuXv6sJDcxGHaU8kO+ujW9RHd+6j7ZT7VG 8tBhooyzm0V2Cl0lu8F0Xj//y4XNwcMO1qFto6pi5ZB0ati8vxhhQASQQdrWV44A4H84 cKm2VrTvi50ZgGoUk/r8+BgQJNdWVL9StgK6sUqfY50fDy9H06yhgj3hm/W8aHJXhzVe F+Hw== 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 h10-20020a05640250ca00b0045dc9b4c034si4590353edb.582.2022.11.18.16.43.04; Fri, 18 Nov 2022 16:43:36 -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 S231790AbiKSAb2 (ORCPT + 99 others); Fri, 18 Nov 2022 19:31:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235679AbiKSAbD (ORCPT ); Fri, 18 Nov 2022 19:31:03 -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 F1B1711658B for ; Fri, 18 Nov 2022 15:41:22 -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 1owA8l-0002ny-Is; Fri, 18 Nov 2022 23:47:19 +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 1owA8j-0058Vz-3V; Fri, 18 Nov 2022 23:47:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8i-0000B9-3A; Fri, 18 Nov 2022 23:47:16 +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 300/606] media: dvb-frontends/af9033: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:34 +0100 Message-Id: <20221118224540.619276-301-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?1749883149528811734?= X-GMAIL-MSGID: =?utf-8?q?1749883149528811734?= 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/af9033.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c index 808da7a9ffe7..a30773f62006 100644 --- a/drivers/media/dvb-frontends/af9033.c +++ b/drivers/media/dvb-frontends/af9033.c @@ -1049,8 +1049,7 @@ static const struct dvb_frontend_ops af9033_ops = { .i2c_gate_ctrl = af9033_i2c_gate_ctrl, }; -static int af9033_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int af9033_probe(struct i2c_client *client) { struct af9033_config *cfg = client->dev.platform_data; struct af9033_dev *dev; @@ -1184,7 +1183,7 @@ static struct i2c_driver af9033_driver = { .name = "af9033", .suppress_bind_attrs = true, }, - .probe = af9033_probe, + .probe_new = af9033_probe, .remove = af9033_remove, .id_table = af9033_id_table, };