Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp452453qtx; Fri, 18 Nov 2022 17:04:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7tGdDTOB6G2/Vn9ORUIyBNgSmY5KOuwUG1qLp9EhAEp29i/HY+4T2ieVBJ/Ip6yrNOc+lU X-Received: by 2002:a63:1a5a:0:b0:456:f79e:4e95 with SMTP id a26-20020a631a5a000000b00456f79e4e95mr8472770pgm.607.1668819855104; Fri, 18 Nov 2022 17:04:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668819855; cv=none; d=google.com; s=arc-20160816; b=MnOy2LxSPdp5S/vr/2Jpf/Y5T8QTNf3EntlttompRwFJEqUv7TML4I8WMAfV7fIWSO HMiRk+Za5PtcsbZbCY+d7IAiOQ0DbgzTJ6UFCW9/D79k7E7dQI7X6/8akPsv+2vzP7Oi tmQio9oPtCwgLQbEKLKI9AAujEUSa1DK9e2Ufu0JaXHTTzGW/ojNLnioQMuySztQDVzn 2y4jtquLepCaovAyvqWisZNRN39kkEmwnSumgUtVf5bB1jqqYAkeCSzQoe3mukXUElXf DjhJ6ydUXApNF4LZFLz73g6ZW7YGJCTABBp3IxmB9dfalVsMruFSoD0lkhJPFluc0q/4 IPrg== 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=B+iD708vJkhoMMqktDvi/ACz9ZmmyH6zWSAfowy9Cyc=; b=hQ5KaDgvc91Ib0dLJTw0+Y+77XvpDsP0uD7I1XQGX4bKmsZHbM7BCNDGD0urIzbPWR HICSUzG8rp9wst9IRXqFp2IwBAvVKqFSqmUW5poHl00Sapxu2/wlrRgrArwUtHG6sSaS Uk2SrzC3/sEx/gSLUmpUEbquoFa9hwfRPyy7nib4SbX+qJWJ9G0pX+Khs6IPGJD4+KyY GdXf7X9u8Oj67QoPkGuia0RwwiwDPeljaKO4qZ/wFlpEIOaM4LczHBHTdW9bkNpqLhJB meerFDn1+1W0wnQmgh3l7wzkEoxvhfb2pAaz+FZn7ggElOQaBnQCQSZS1BDKPnbeS2v4 2hRA== 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 k4-20020a63d104000000b0046fb2a57348si4853690pgg.84.2022.11.18.17.04.03; Fri, 18 Nov 2022 17:04:15 -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 S235489AbiKSAaa (ORCPT + 91 others); Fri, 18 Nov 2022 19:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235440AbiKSAaC (ORCPT ); Fri, 18 Nov 2022 19:30:02 -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 46A061122C3 for ; Fri, 18 Nov 2022 15:40:53 -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 1owA8m-0002qs-U2; Fri, 18 Nov 2022 23:47:20 +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 1owA8k-0058WR-GI; Fri, 18 Nov 2022 23:47:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8k-0000Bo-MP; Fri, 18 Nov 2022 23:47:18 +0100 From: =?UTF-8?q?Uwe=20Kleine-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=20Kleine-K=C3=B6nig?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 310/606] media: dvb-frontends/mn88472: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:44 +0100 Message-Id: <20221118224540.619276-311-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/dvb-frontends/mn88472.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88472.c b/drivers/media/dvb-frontends/mn88472.c index 2b01cc678f7e..4a71f1c6371a 100644 --- a/drivers/media/dvb-frontends/mn88472.c +++ b/drivers/media/dvb-frontends/mn88472.c @@ -572,8 +572,7 @@ static struct dvb_frontend *mn88472_get_dvb_frontend(struct i2c_client *client) return &dev->fe; } -static int mn88472_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mn88472_probe(struct i2c_client *client) { struct mn88472_config *pdata = client->dev.platform_data; struct mn88472_dev *dev; @@ -719,7 +718,7 @@ static struct i2c_driver mn88472_driver = { .name = "mn88472", .suppress_bind_attrs = true, }, - .probe = mn88472_probe, + .probe_new = mn88472_probe, .remove = mn88472_remove, .id_table = mn88472_id_table, }; -- 2.38.1