From patchwork Fri Nov 18 22:38:56 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: 22770 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp465871wrr; Fri, 18 Nov 2022 15:38:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf6uVYmtzNFMdu4FAWeNpCOvD9mv34JV4Rkpgy4URksaRU9seAAx6oN0rDUVYMOcLxcaMaQ2 X-Received: by 2002:a17:906:5db2:b0:7ae:d58b:30f8 with SMTP id n18-20020a1709065db200b007aed58b30f8mr7518741ejv.564.1668814721067; Fri, 18 Nov 2022 15:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814721; cv=none; d=google.com; s=arc-20160816; b=yTCag4GJ7Jo5r0wdrvTTx0GNA+lgcs8Ws7RgLL9kCwwWL6J2WTc74qwe+NEkwO5jTw C14cCUDt7LpG1nA9JkUwaS4P3xgH6i4qNYm9fWiSJGtZa8l7zE5cTHFvG2zxQbqRx5wl LUjSelp1bnpLxTU1Qzv83BgZ9iJgJ76tufpvp0OPpHJifqOZrE9k3naW9dWOKL3nQ5bv 9UifTJezDp+4fTV678VFGAh3IEgjVtkg27BtLyv/Ug7BMu4QpcjkwbAP61YZFWNo80fc IQk+9zq6k2Q68mevm9MxSgeq9YW6SXKWEFqJde50gZNZJACAsT5lNxyjKZZ8SYlSkPOA 9FkA== 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=2Vj9T7TvlUN9Rd6+wDXOmgwIEsHHHYSbUs2Go0/AOAo=; b=MthwRwmkUqNrg35ziaq33Xw+KI08ORGKPeuuLQkFsJFPwF7wY2+1HYY1uP2vyUaQQG FODBEbwtGaTlx0XTJ6c7O5mNdtXuzs+vT/taPyZ1HcEoTOVtmG8pi+WjQYNcB9zpdUxT O47mNNbS+tuo5zdVF1GB4aIWiv76f12u9JXF1hkxNUlACrfQSdS94NDDoJJU4OImSgoN SlFLi8V6wwt1ULLJkqfDfNV9GsgaisHNPwKdCOf6T1em1WAsteOUGcp/D0VC7L2JvBCl HX92gBiJwSNf1Jt4BOe1QFxnTY7/vZzd/N6iJFfhW3gMX24FEaJuCV8wLEZDZDXZks9W U7qQ== 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 hd16-20020a170907969000b00791a37e665esi4326393ejc.10.2022.11.18.15.38.17; Fri, 18 Nov 2022 15:38:41 -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 S236003AbiKRXgx (ORCPT + 99 others); Fri, 18 Nov 2022 18:36:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236432AbiKRXc7 (ORCPT ); Fri, 18 Nov 2022 18:32:59 -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 EFF2A83EB9 for ; Fri, 18 Nov 2022 15:20:50 -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 1owA8O-0001hF-6M; Fri, 18 Nov 2022 23:46:56 +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 1owA8K-0058Nm-Qt; Fri, 18 Nov 2022 23:46:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8K-00Hb7z-Ss; Fri, 18 Nov 2022 23:46:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Miguel Ojeda , Luca Ceresoli , Petr Machata , =?utf-8?q?Krzysztof_Ha=C5=82asa?= 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 202/606] Input: qt2160 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:38:56 +0100 Message-Id: <20221118224540.619276-203-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?1749879064921380040?= X-GMAIL-MSGID: =?utf-8?q?1749879064921380040?= 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/keyboard/qt2160.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/qt2160.c b/drivers/input/keyboard/qt2160.c index 382b1519218c..04d2ee6ff577 100644 --- a/drivers/input/keyboard/qt2160.c +++ b/drivers/input/keyboard/qt2160.c @@ -338,8 +338,7 @@ static bool qt2160_identify(struct i2c_client *client) return true; } -static int qt2160_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int qt2160_probe(struct i2c_client *client) { struct qt2160_data *qt2160; struct input_dev *input; @@ -461,7 +460,7 @@ static struct i2c_driver qt2160_driver = { }, .id_table = qt2160_idtable, - .probe = qt2160_probe, + .probe_new = qt2160_probe, .remove = qt2160_remove, };