From patchwork Fri Nov 18 22:39:32 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: 22755 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465228wrr; Fri, 18 Nov 2022 15:36:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dY74Pni8Accb+isGx5lQgjZpVDtS88PHNB7rfXSW+ZV4HHFLaMefU39jvOiM0T6i2aRCn X-Received: by 2002:a17:906:1b4a:b0:7ad:aeda:f81d with SMTP id p10-20020a1709061b4a00b007adaedaf81dmr7971514ejg.588.1668814616611; Fri, 18 Nov 2022 15:36:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814616; cv=none; d=google.com; s=arc-20160816; b=HZvwSPqJHvsl07sQdCzcT+/JCqP6bf5dIwjkbOUqHfuiwXGJbwwXPtoSbG0ocZilnv Qb6wdRW3dI4Gof4qhAdtnNgHBbjK23tKR6+8D9xPUIvbLlf4QepFNvwiepVloUy8xHU/ m/7w7M1TBBPOgy1MJ1QKmjnnS7rcAiLMoxNu0BdFcMVJir9dDb88sj7JtRxldZP4pPsv g9+XPr6NavQGzZulRVjUZQzoYtMgt30gf+m+S/AgPTjvVqPpFuv+GObTx6xEQkrOOaDL uuxflwooqmhfOlfjWSNa9fm3AA+47gGMssJtxgfq5UVpP2LI0JrSMGLSlGH31LdRrD78 BxpQ== 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=v+qs6ubjBZyVf/KtmIY4Tneb7CyB1QkQp1wadEc4Rck=; b=ccVAuy7v755B+Pl8/UkEFxOT/a8AtGw4DSluEfSumfTWPnFWArbmGP640I5JKuOhno u3TGjuFhNhLVnQqMn2SQObwg2eS0bKdolmuaz50yeD2v6jexAHARLa6lrY+PUoXzDcJN wtVCFd8D+BGg531nR1t3n3doiz5drdVx8IoVh9+H09WzUpxQ36wUOvS4MdcQ2yYAVTM/ ZjfUtAnYIHbc3XJJRFWktHIv/M4xMrIa21QNpYDFLc23vtcKeyX5ZBORI2gfsHgwXHoG 9dwR+BqD0enb80hSAWUa8pizUYM3AEDE6BWk1EZOH92X1QybgmIQXRVTq/nL8pK+vqhg UE4A== 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 y20-20020a17090668d400b007ae165c79c8si3979579ejr.940.2022.11.18.15.36.32; Fri, 18 Nov 2022 15:36:56 -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 S236361AbiKRXfz (ORCPT + 99 others); Fri, 18 Nov 2022 18:35:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236249AbiKRXcV (ORCPT ); Fri, 18 Nov 2022 18:32:21 -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 4E29B60F1 for ; Fri, 18 Nov 2022 15:20:02 -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 1owA8W-0002BI-Dx; Fri, 18 Nov 2022 23:47:04 +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 1owA8T-0058Qi-GK; Fri, 18 Nov 2022 23:47:02 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8T-000073-E6; Fri, 18 Nov 2022 23:47:01 +0100 From: =?utf-8?q?Uwe_Kleine-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_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 238/606] Input: eeti_ts - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:32 +0100 Message-Id: <20221118224540.619276-239-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?1749878955726398786?= X-GMAIL-MSGID: =?utf-8?q?1749878955726398786?= 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/eeti_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index a639ba7e56ea..c8ab03f49227 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c @@ -158,8 +158,7 @@ static void eeti_ts_close(struct input_dev *dev) eeti_ts_stop(eeti); } -static int eeti_ts_probe(struct i2c_client *client, - const struct i2c_device_id *idp) +static int eeti_ts_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct eeti_ts *eeti; @@ -292,7 +291,7 @@ static struct i2c_driver eeti_ts_driver = { .pm = &eeti_ts_pm, .of_match_table = of_match_ptr(of_eeti_ts_match), }, - .probe = eeti_ts_probe, + .probe_new = eeti_ts_probe, .id_table = eeti_ts_id, };