From patchwork Fri Nov 18 22:43:44 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: 22944 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp474796wrr; Fri, 18 Nov 2022 16:05:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5j2DAbXXwQ81c6xAS0zLOCu4uJRbUyISibxmEMpiH5K9r75ZFIheMFJ8R3thmys6X5uWKW X-Received: by 2002:a17:906:5db2:b0:7ae:d58b:30f8 with SMTP id n18-20020a1709065db200b007aed58b30f8mr7574114ejv.564.1668816301107; Fri, 18 Nov 2022 16:05:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816301; cv=none; d=google.com; s=arc-20160816; b=N2Q+L/K9m4WDxctb5l3fsmeJxsTuj5rDEdjSBOY1lytflpF8ncC+FHNjcvCt0JxPhM FRMwr3fbDsv1sVMfu6t781FY4xJLwFkD2BnKC4ehJMVbGvuvqBs8XeIrJLVhToL9Yhtu P3mf6PlF4fTBI1NAoGdofwE/AznMPR026bUAR359bj1Br/PX+NWP+FPwrJeFYWXguNih 2x+MjNONEKQ2so9uOk8X5yNny8WAEHmr1yn4T9QSP1IKL758GRXE62Z68MYFhs5UfIjA pr2/6Ory8BT9V/mcDT1ASitskkmTLCONbtFPuKKCERwk7Pg1lBbc7ivGuGwPmN/UUbKy S0NQ== 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=C2S1bOarjA5xK5kAWMeaTanBoUbL7qtgEvwYPsenTxs=; b=iBNosV5JWQF4AweTuXTDs7Iib6ptbUjdVpA0Lil6yOQAaIS1ljwrEptObUoDQfZREQ TeXcdfM2e6f2cS6enUOwLPZVosxHLDLlGkzuGoMebsNK68s1UmSEQMDr8f38+pDGsAPM ABHTXkmmkigzk2zryDGymd2YQj0Nzfb226kyW1T+MushiDdHb/c0RSXXdn1kJRkNf7Oi MRB3weXo//KDj7KB1WHQf/n+Nnp4BVlOwA34QqlKtlTPLqe/tYieLeaNV7PwaOZba1Bn 8seOPj/lWTrTs1Ljh7gqDyPvztn79/8iBB/h7328FdWPvBbk+XZJA/nRVeIUtdM48HZD Mfvg== 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 v22-20020a056402349600b00467570d605esi4462665edc.608.2022.11.18.16.04.34; Fri, 18 Nov 2022 16:05:01 -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 S237193AbiKSAAh (ORCPT + 99 others); Fri, 18 Nov 2022 19:00:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237416AbiKRX5n (ORCPT ); Fri, 18 Nov 2022 18:57:43 -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 4B85FCDFEC for ; Fri, 18 Nov 2022 15:29:11 -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 1owA9Q-0004ZA-Lz; Fri, 18 Nov 2022 23:48:00 +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 1owA9N-0058lE-Vx; Fri, 18 Nov 2022 23:47:58 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9N-0000Of-NT; Fri, 18 Nov 2022 23:47:57 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-kernel@vger.kernel.org Subject: [PATCH 490/606] misc: hmc6352: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:44 +0100 Message-Id: <20221118224540.619276-491-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?1749880721948046865?= X-GMAIL-MSGID: =?utf-8?q?1749880721948046865?= 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/misc/hmc6352.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/hmc6352.c b/drivers/misc/hmc6352.c index 42b9adef28a3..8967940ecd1e 100644 --- a/drivers/misc/hmc6352.c +++ b/drivers/misc/hmc6352.c @@ -101,8 +101,7 @@ static const struct attribute_group m_compass_gr = { .attrs = mid_att_compass }; -static int hmc6352_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hmc6352_probe(struct i2c_client *client) { int res; @@ -132,7 +131,7 @@ static struct i2c_driver hmc6352_driver = { .driver = { .name = "hmc6352", }, - .probe = hmc6352_probe, + .probe_new = hmc6352_probe, .remove = hmc6352_remove, .id_table = hmc6352_id, };