From patchwork Fri Nov 18 22:39:19 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: 23024 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478846wrr; Fri, 18 Nov 2022 16:15:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4GvxlPkS3qMDAfL0wnSrxdZlYlzAoj34Up8dnIvzWW1lYLY8Y64tWG78ub8+71iT9gPcuO X-Received: by 2002:aa7:df84:0:b0:468:74:9820 with SMTP id b4-20020aa7df84000000b0046800749820mr7976741edy.288.1668816924473; Fri, 18 Nov 2022 16:15:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816924; cv=none; d=google.com; s=arc-20160816; b=cKBF8UbBrl8sOAb7EwlgPpfMPbSfajbrjiqLS9IGq3SvZaxwCb317hX5caUVbdDomc KWJ5OWkWxpeRkeRGOWkpRHb78R6XgaUO2hL5Y5RzE1gbpALlIDswTlQ7jkq2UaxnK89J O9BHCjo9aLI/BMJRrUmQuEO3nQU0NBACtFt1XxR2oPFkQ75OijfshYraWO/o6oskDlw6 SAjqrfP0CiCOivqDYg4/LIgqvbm6Rn6LFDSjeRkvoUIMXvpXOu7BrTSNzbj2Ei+qGKKm +jARoXeYL9XpbLsJqQ2akdwq7ILqxytu5gP7f+XTdbZ7FXUgP8BJp4cSURTRo4mCkjbZ ktOA== 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=Kjs35bqxrl91ItpmYscPZZxv0yzNitrncCAeRNt85HU=; b=jn5Sc22t+5cTa7a5Qn2H3WqJ7O7JFEFCNlLV/auUcd3PgpCpe0kVawf4CQzK0bIeqz u2q1OfkTDDwjJYrBFGQeIkXrZg1LW+jNhB4u8xujMglAlgGbgA9I9Ti6qp2dmmMYx1vD cYVXxfLuVFDYZfWS6wOlmfe0EtseMmGpt8jxiKLLW6hV0Y211Lez6qBPQGkJy9B6gVkg ZWdDLGa+Vkyyw82Vk862BkP3c2GMkpeOLwiVK/BnlDFA1etAKPHOOWE7DbFInMwRGYGp X4aqOUnQnZ3eQ/ysRXbLAmKA8mOn63dRfFsvpFxZhNjxjSUdOFa44AOj1ZW/byV8jyYz vlcw== 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 h19-20020a05640250d300b0045c9f2adb6bsi3983867edb.606.2022.11.18.16.15.00; Fri, 18 Nov 2022 16:15:24 -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 S237844AbiKSAOH (ORCPT + 99 others); Fri, 18 Nov 2022 19:14:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237817AbiKSANf (ORCPT ); Fri, 18 Nov 2022 19:13:35 -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 065B0F390F for ; Fri, 18 Nov 2022 15:34: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 1owA8T-00021q-DL; Fri, 18 Nov 2022 23:47:01 +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-0058Pe-Fg; 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 1owA8Q-00006F-Pi; Fri, 18 Nov 2022 23:46:58 +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 225/606] Input: ad7879-i2c - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:19 +0100 Message-Id: <20221118224540.619276-226-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?1749881375479058555?= X-GMAIL-MSGID: =?utf-8?q?1749881375479058555?= 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/ad7879-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/ad7879-i2c.c b/drivers/input/touchscreen/ad7879-i2c.c index 0f20a1fdcdba..dd8f31737bb8 100644 --- a/drivers/input/touchscreen/ad7879-i2c.c +++ b/drivers/input/touchscreen/ad7879-i2c.c @@ -23,8 +23,7 @@ static const struct regmap_config ad7879_i2c_regmap_config = { .max_register = 15, }; -static int ad7879_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ad7879_i2c_probe(struct i2c_client *client) { struct regmap *regmap; @@ -63,7 +62,7 @@ static struct i2c_driver ad7879_i2c_driver = { .pm = &ad7879_pm_ops, .of_match_table = of_match_ptr(ad7879_i2c_dt_ids), }, - .probe = ad7879_i2c_probe, + .probe_new = ad7879_i2c_probe, .id_table = ad7879_id, };