From patchwork Fri Nov 18 22:39:21 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: 23021 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478587wrr; Fri, 18 Nov 2022 16:14:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf4h9Q3IarAjvjboaNN8jnteMMbDmU3hDsdPh/F2xMF68Mqmvuxj8lr/W1F66n+PWIigBkhA X-Received: by 2002:a17:906:4997:b0:7ae:ec5c:a99e with SMTP id p23-20020a170906499700b007aeec5ca99emr7664081eju.219.1668816885476; Fri, 18 Nov 2022 16:14:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816885; cv=none; d=google.com; s=arc-20160816; b=D6Klw2oujCfepkakofvZmwRycMY9tKjCvnF2iNFe/MAeYIHwu0P/FxiMXlJ/ykVevl txUfx57Pygbo3TQaDv6wr9t6vACOTKmVzIPsSpPYVDPoToRubw0POla0+odgEFT5Kz5i eknfDlVqNPkG0+LfnT1jOPhJC/LaAR44OjbWYXKO+Sw6auSFHSn32GFQLnye/GO/5EI/ 9680uJxGpY4lkEoy/ZQ4u8oIlvxHFYLJh7xgN0p+y94pVKyqBYvKz293jpVLdB6xmbwz VKX6+HnGU4q0F/goUY3I8ToPmwbmP2Q7PJW8XOxAwIgDIN3nw7exSYAAXqiqRzVl/Wv8 T0XQ== 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=XSTnUxNkMAGJM4B6kT4yG3uiUMO5l8rzRYSyxTaaxUQ=; b=mdxPFEDIaFNcR7XaT0Oisj4zKhyQ6Q/m9PWRKthpZKeTqnQd4m6ENBTzF8hRHvnk+w BiGbIfBNwIpYQcnSRf7teu7Wyyt9xF0NlmZu4MZHL5Q7U45ZEb/qoZN34s3wE0Kug1rj EHPQoSHj3+yn25KKFVurfFYsrRcAAuH+rao7u6HVfTjNqsWb5gILcRHWePucBSt7IWgc +waVksPVq/bmMNMoHBVCrVGetxbVKvf7P8WXPJoaTh1TTpQBvvtN7epCeWFvxNf69cUE 6A4FSjcniVSnwaXEXtYP8McpCMvR7Xfu82rESCDqUOplhXJfOoXNpojlT9H5s3EdBfOE TliA== 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 m3-20020a056402430300b004637e16cfa3si4034665edc.598.2022.11.18.16.14.22; Fri, 18 Nov 2022 16:14:45 -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 S237747AbiKSALm (ORCPT + 99 others); Fri, 18 Nov 2022 19:11:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237589AbiKSAKK (ORCPT ); Fri, 18 Nov 2022 19:10:10 -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 66A5DA459 for ; Fri, 18 Nov 2022 15:33:28 -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 1owA8U-00023U-2l; Fri, 18 Nov 2022 23:47:02 +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 1owA8Q-0058Pm-TW; Fri, 18 Nov 2022 23:46:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8R-00006N-6K; Fri, 18 Nov 2022 23:46:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Nick Dyer , Dmitry Torokhov Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 227/606] Input: atmel_mxt_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:21 +0100 Message-Id: <20221118224540.619276-228-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?1749881334403185559?= X-GMAIL-MSGID: =?utf-8?q?1749881334403185559?= 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/atmel_mxt_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index ccecd1441f0b..39ef2664b852 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -3129,7 +3129,7 @@ static const struct dmi_system_id chromebook_T9_suspend_dmi[] = { { } }; -static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id) +static int mxt_probe(struct i2c_client *client) { struct mxt_data *data; int error; @@ -3377,7 +3377,7 @@ static struct i2c_driver mxt_driver = { .acpi_match_table = ACPI_PTR(mxt_acpi_id), .pm = &mxt_pm_ops, }, - .probe = mxt_probe, + .probe_new = mxt_probe, .remove = mxt_remove, .id_table = mxt_id, };