Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp452018qtx; Fri, 18 Nov 2022 17:03:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf59/5Jakj71bteKfBlqc+wFef7Y6eY8ZYdsjmZkxOcgcWhZhf+sq383JyRKXHAo4pD0bEdS X-Received: by 2002:a17:902:cacd:b0:17f:7d9a:4952 with SMTP id y13-20020a170902cacd00b0017f7d9a4952mr1871957pld.117.1668819787816; Fri, 18 Nov 2022 17:03:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668819787; cv=none; d=google.com; s=arc-20160816; b=MvgDtn76kq59IW8rNma/oLLUcF1WhkHmXSGX1WQMCwXG/w13HLeqgRD4UM8qheqKKn uzCIRCmvNGKddRxYrlnQj1tSySxnwluuk4CNolQNAD8Uq7OVe2/ihytbHZg3cIuQx6IS X6/if5yxHdxlV1EVfAkkNh5xdgbKsxvLL9nl8eF4Oud3DBuvlVaki3joH8veQmRGc9ND FMqOsUadaPLB3P9y84Bb1+B7mGeKZ7Pp6MGU7wDOtPOGZTTF3zVV9pV7SXaf++xGL/gd IVkVcyVpXwcu/Ik4sFOHe3Js0jkpw6IDyls3XT6kR9Ln6asiMg6Oa6ROgrLcIUfeN5r7 S9ZA== 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=+7BiSGZ7umMHE6Al22NkOjeXpFQ5Qa0pC7arQYHh3iI=; b=FjpGkS/jxrNrFzJ1cpxF6kq7BFDhXc61G7M5Hux7TasgtFJ/iUhkocY6DJn7KAL3MX zoKx/JA1js3gMKmDIhbVoDnp9wm5LqFjtqcrcksHAuBHxzY9tJlRiUsVPO1ASG+4i/wv 1x6aSX8CL7Rh2pYhAO8AiWG9LmSmtsQ+6ihrvt5CIGbApLRDFYHMIGZiQha14qIN140m 6TBBKfHXvo6b0cNQfd9y2mciQdvaGX0tmlyZj15C/x+DU+D1wsi8WB5CBDfsDs3iVwy5 EngpqtxW2m3+1+rrp+kLJ2I4UVYn0TXQA5jFRNjF+9QdK+5sMQJ2PVFLRDBM09Ai5Vtc mryA== 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 g2-20020a056a000b8200b005732e831300si3292564pfj.337.2022.11.18.17.02.56; Fri, 18 Nov 2022 17:03:07 -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 S236164AbiKRXkO (ORCPT + 90 others); Fri, 18 Nov 2022 18:40:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236787AbiKRXhz (ORCPT ); Fri, 18 Nov 2022 18:37:55 -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 CE75C6D97D for ; Fri, 18 Nov 2022 15:22:34 -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 1owA8b-0002O1-Hk; Fri, 18 Nov 2022 23:47:09 +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 1owA8Y-0058SO-HA; Fri, 18 Nov 2022 23:47:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8Y-00008P-2X; Fri, 18 Nov 2022 23:47:06 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , =?utf-8?q?Mika_Penttil=C3=A4?= , 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 258/606] Input: sis_i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:52 +0100 Message-Id: <20221118224540.619276-259-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/touchscreen/sis_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/sis_i2c.c b/drivers/input/touchscreen/sis_i2c.c index 6274555f1673..5a493b15b25d 100644 --- a/drivers/input/touchscreen/sis_i2c.c +++ b/drivers/input/touchscreen/sis_i2c.c @@ -296,8 +296,7 @@ static void sis_ts_reset(struct sis_ts_data *ts) } } -static int sis_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int sis_ts_probe(struct i2c_client *client) { struct sis_ts_data *ts; struct input_dev *input; @@ -394,7 +393,7 @@ static struct i2c_driver sis_ts_driver = { .name = SIS_I2C_NAME, .of_match_table = of_match_ptr(sis_ts_dt_ids), }, - .probe = sis_ts_probe, + .probe_new = sis_ts_probe, .id_table = sis_ts_id, }; module_i2c_driver(sis_ts_driver); -- 2.38.1