Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp452656qtx; Fri, 18 Nov 2022 17:04:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf730jSk17nJW4tmcDlqr6S3+GbuAqvCMCBoarUChtHOAmPQzxATqAy4PeMv9iWyRKiCZvzZ X-Received: by 2002:a17:902:eb45:b0:186:944d:469 with SMTP id i5-20020a170902eb4500b00186944d0469mr2010226pli.29.1668819889341; Fri, 18 Nov 2022 17:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668819889; cv=none; d=google.com; s=arc-20160816; b=eiL0iB8FO44Ihczmdlm4caoG1Pyma7NsZa1bppkuDto6F1OXNcr8qUk3AbE999aElm EHxa0j1Uj7OaEuhDr5rx8RZDyZTOlzf0xUtjqXpw90hUPnox+V5fDqbNpq3ALDsmOAQF LU71rky8KpS5nQAAv4I4izJMDpvFKy0y9mQTD/CeM4Q79bLXdCae1515lV9VGBzCwDSA WU7xtuT61s3IWtW4/CdRb/V4P+GrclDAi78J+0i05xJ17BUUEy7se5H94MheHyE4w92M qxp0c7+EGGpU8gjzYC8CD+vD5H/H5s1afyx3khrXtngaoOSSjHOR6s7Ui044OxIeeFbs 3hZw== 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=icDWmEkkJoh8bLw1ipkfdyPEMxh1UZamkX/eg00Pt+U=; b=HJOug7k4z3cPo1QuSsP9BPhDNY3QNkXAhe2UX1X8evo9QIUNZXqR2Qs5Fd0xf8TaUD dou2B5lTuSW6bQ21SiYQO2CtfwFaAgontmGVOX2L4tU/QmXs6nbZiDIUAqvmsloczOpy P0yxd3gGRsIzrRFt0brkZ6mScxKI+FITpUxsBSJXYKvoqpoVshiYN+TuUe3RxGy2ShjS vQ3seyEVPQBP0u7yPJoYVztDqCFAEuNsE+i1DfPia65WtoVPKBSTK14+XW1fjHE6qiEA S4FxwoKHMxy7gaU5bWiww1kc+Qeb1+ny3emHCPrxMsdr6xZdvRFXmWRnxtisyjFlEgIP vsaw== 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 t4-20020a634444000000b0046ef67cb979si5552906pgk.82.2022.11.18.17.04.38; Fri, 18 Nov 2022 17:04:49 -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 S237089AbiKRXxg (ORCPT + 90 others); Fri, 18 Nov 2022 18:53:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236985AbiKRXwB (ORCPT ); Fri, 18 Nov 2022 18:52:01 -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 1F87FBB5F2 for ; Fri, 18 Nov 2022 15:27:19 -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 1owA8R-0001wL-IB; Fri, 18 Nov 2022 23:46:59 +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 1owA8O-0058P3-R9; Fri, 18 Nov 2022 23:46:57 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8P-00005i-28; Fri, 18 Nov 2022 23:46:57 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 217/606] Input: kxtj9 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:11 +0100 Message-Id: <20221118224540.619276-218-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/input/misc/kxtj9.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/kxtj9.c b/drivers/input/misc/kxtj9.c index bbb81617c2b2..7e73e6e0730f 100644 --- a/drivers/input/misc/kxtj9.c +++ b/drivers/input/misc/kxtj9.c @@ -385,8 +385,7 @@ static int kxtj9_verify(struct kxtj9_data *tj9) return retval; } -static int kxtj9_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int kxtj9_probe(struct i2c_client *client) { const struct kxtj9_platform_data *pdata = dev_get_platdata(&client->dev); @@ -539,7 +538,7 @@ static struct i2c_driver kxtj9_driver = { .name = NAME, .pm = &kxtj9_pm_ops, }, - .probe = kxtj9_probe, + .probe_new = kxtj9_probe, .id_table = kxtj9_id, }; -- 2.38.1