From patchwork Fri Nov 18 22:45:07 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: 22737 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464729wrr; Fri, 18 Nov 2022 15:35:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RxVaA1AePVsPIl4vQujI+7QWzJEealJ4AHEnR1ZFq+h4xnvSiP4fc5+srw/M1f/AyiwuS X-Received: by 2002:a17:906:3a5b:b0:78d:f3f4:b1a0 with SMTP id a27-20020a1709063a5b00b0078df3f4b1a0mr7843509ejf.489.1668814537968; Fri, 18 Nov 2022 15:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814537; cv=none; d=google.com; s=arc-20160816; b=oMtV+gHLlmD+EZ/FMuRxM6ByimvDt0TMsJnNxB6pvW0ql4DNBijf6FL9GNnH6hj5PH qUvSLB5+DIHxIRUWi0THLKw6TjF6v/jf4BHUDwdZ6vnze25d4xEyhr8pCNTbaw3N5xLG 00V10JCUsJotufPsOSS7T6yCy6M3tGZuG71WeUqv4hb0aMObcdL6vnHveE22oqp6xcph Hg9G1mRYJhcs1Dfkby75gpcTwNBPV0wilqP3y1C1mwqGLbB2d0Rm3ZG97PC9KOMH/VX6 QSW+ongSDjiYImFq+bDp85Qzcs7ee/aX8u3aFNNgluY4fGXn6z4QM55xTqQUyF2p5LAS 74vg== 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=V3tD1XWMDDJEL3NQsvWacyd2hbTT462cVmTDyoRuDLo=; b=pJcH9SsjW3D8qxy2Q1u/TnOIswKv+cnkiYH3cahmClKalFOjeatM+Cv+wV38hnukP/ f86GttX5yDnsLwYF1MlhpdaykkQ1+a26BZM3/gsenjQK5VvKjJlDE+eroUaU2zrxPnQ/ SB2yFs2V+mj0djnhQgqTlQM52t4y/B/Qq6h4fugrtMqqd8HQLKBHqqFBZ12Jz06PWtXf nmUmvv4EmzZlu58gUYz/TwfCwjszJkEEe/qS3VGbK6HbWZzraCxl6HLmm3kGm6gfh2KZ 8PQrfYCtT2v4tC7dzsAKZFPbHgmqe+iYjR3BiMYPBI5F51K4VApwd3Ne/I+1rCbq1IJi T6Mg== 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 i8-20020a05640242c800b00458c130870esi1564257edc.385.2022.11.18.15.35.12; Fri, 18 Nov 2022 15:35:37 -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 S236267AbiKRXef (ORCPT + 99 others); Fri, 18 Nov 2022 18:34:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235959AbiKRXbl (ORCPT ); Fri, 18 Nov 2022 18:31:41 -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 C6E0D93CC0 for ; Fri, 18 Nov 2022 15:19:05 -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 1owA9h-0005Go-Ey; Fri, 18 Nov 2022 23:48:17 +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 1owA9e-0058rv-Gf; Fri, 18 Nov 2022 23:48:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9e-0000U7-8n; Fri, 18 Nov 2022 23:48:14 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Greg Kroah-Hartman , Dongliang Mu , Javier Martinez Canillas , Srinivas Pandruvada Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 573/606] usb: misc: usb3503: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:45:07 +0100 Message-Id: <20221118224540.619276-574-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?1749878872949188182?= X-GMAIL-MSGID: =?utf-8?q?1749878872949188182?= 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/usb/misc/usb3503.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index c70ca475c7c7..bd47c4437ca4 100644 --- a/drivers/usb/misc/usb3503.c +++ b/drivers/usb/misc/usb3503.c @@ -280,8 +280,7 @@ static int usb3503_probe(struct usb3503 *hub) return err; } -static int usb3503_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int usb3503_i2c_probe(struct i2c_client *i2c) { struct usb3503 *hub; int err; @@ -400,7 +399,7 @@ static struct i2c_driver usb3503_i2c_driver = { .pm = pm_ptr(&usb3503_i2c_pm_ops), .of_match_table = of_match_ptr(usb3503_of_match), }, - .probe = usb3503_i2c_probe, + .probe_new = usb3503_i2c_probe, .remove = usb3503_i2c_remove, .id_table = usb3503_id, };