Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1320112rwb; Fri, 18 Nov 2022 16:40:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ZPqXCDUw/MKqwwUL3EqQARxbBhuxMOWcKfPsif2tKIxM0lhTwTu4VSHcC4UE+JxNebBjk X-Received: by 2002:a17:906:f8cc:b0:7ad:92fa:589e with SMTP id lh12-20020a170906f8cc00b007ad92fa589emr7680132ejb.668.1668818455079; Fri, 18 Nov 2022 16:40:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818455; cv=none; d=google.com; s=arc-20160816; b=NAMSOkt42xGT90eXdk604dCLne7gdCGIgo7N1i4l+XW6Q+NVMYvbtCg9WppSi8vuoX 1u9p4w+SmR4vwkzGH1SVSpfyRSLUpr6U5KOu125AXZPGnIUzSjQSb46NgKDY86z/U2DB mMTj/kLEU0G6l9QdQPmPA8GJ0mOKML+z1u6/dxEedqLZ8s0mQLPBkXbgzKap1zzTU0OL fpEU92cpMDew1ucYtbA/y14GWADaX30pf6URfxHzKNDYZHpir78EbbP1HmRvR98Vo1T0 u0VNL4vSTtK17HcJKcuFlO6ve6/1f+C74l1vnQV70jaiIWpsPSa3dPuIADR03imfrwnD qAbw== 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=oepIZ0gMTNpltUMRo4ocNVMFdTylk2maVUoMyti49KI=; b=ZvYs/8z+vRIRXzX6d1EktbBSsqTaPtrRR2iIkABfyDSwj/AtME0gFd6YacytXjD7tH +olj83H4ufWNDbsz22l6Wjl84/d3JAUocWrLd+meow2cgVwkZZNFl26pvt/qPx6b+n9B T2Dw4RX8+Je6zhoIh7mSikRXSNc0+wt65xIj9Qmoy8F8tJoT5QzRt7Qm2eaYNNAe9X7F hg79XRkmtJxaLn3qs9Yd15hy5/g6SRQbHRpPWQFdj16Ow54uiSsapsbagmhiU2++zUae cJIn8gMJjZtfGS8cUqkypSe9xFyjZ1W6t1LWl4Zuz35CZYRv7c5NJ48iVCEwjKW/AMWp DZcw== 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 u1-20020a1709064ac100b007ae21bbb010si3433061ejt.462.2022.11.18.16.40.33; Fri, 18 Nov 2022 16:40:55 -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 S235596AbiKRX0G (ORCPT + 90 others); Fri, 18 Nov 2022 18:26:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235611AbiKRXYO (ORCPT ); Fri, 18 Nov 2022 18:24:14 -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 06E85786F6 for ; Fri, 18 Nov 2022 15:14:18 -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 1owA8Y-0002IK-KY; Fri, 18 Nov 2022 23:47:06 +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 1owA8W-0058Rf-8q; Fri, 18 Nov 2022 23:47:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8W-00007r-4e; Fri, 18 Nov 2022 23:47:04 +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 249/606] Input: mcs5000_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:43 +0100 Message-Id: <20221118224540.619276-250-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/mcs5000_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/mcs5000_ts.c b/drivers/input/touchscreen/mcs5000_ts.c index 5376d8f740ab..ea9517cad695 100644 --- a/drivers/input/touchscreen/mcs5000_ts.c +++ b/drivers/input/touchscreen/mcs5000_ts.c @@ -180,8 +180,7 @@ static void mcs5000_ts_phys_init(struct mcs5000_ts_data *data, OP_MODE_ACTIVE | REPORT_RATE_80); } -static int mcs5000_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mcs5000_ts_probe(struct i2c_client *client) { const struct mcs_platform_data *pdata; struct mcs5000_ts_data *data; @@ -272,7 +271,7 @@ static const struct i2c_device_id mcs5000_ts_id[] = { MODULE_DEVICE_TABLE(i2c, mcs5000_ts_id); static struct i2c_driver mcs5000_ts_driver = { - .probe = mcs5000_ts_probe, + .probe_new = mcs5000_ts_probe, .driver = { .name = "mcs5000_ts", .pm = &mcs5000_ts_pm, -- 2.38.1