Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1344661rwb; Fri, 18 Nov 2022 17:10:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ymo6uBATwbMGPZ54BidmfWGJ+EORBm3xJhoFX1UfEoffCyiZ9LLRzS2ngb54ULXAcVkIL X-Received: by 2002:a63:fb04:0:b0:476:7faf:e0bf with SMTP id o4-20020a63fb04000000b004767fafe0bfmr8825110pgh.80.1668820228905; Fri, 18 Nov 2022 17:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668820228; cv=none; d=google.com; s=arc-20160816; b=FfKys00whglTAiUYgQarB9ngC7o+od95m+sNPOZR3eoYyU1K4lT1jM/7W3R9dtH00Z ELHn1KXEgUDC6c8yimOJ5KY0SUrdsDqNFqZj1PjwjXW4+EZzcnA7KZbAYxgS2HY1Xkod YXtqScgGe6A50lbqnrIFNt+xd6OkWZ7jlLSvnxxzUUu0qzttIva084fkTdnfHCvlqFgs FEmHeVbrUAXtw1NYGu64NQmYOwzA0NoJ8+KfnecrpCMAZddJikzikptjqQzc1J5U3nSX zSjg/Qom1UveTbboUIUUi2UB3CW6t0mookD9KcGqUD5yh583GhCW2Zs+kCDqO9nYkTmc kklA== 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=5m3hMZOfBnGx6VEFMO+dTKhmX7kY4VH+JjvSvjcvYok=; b=oO2sVQbUPUUy1lY8cV5cBthKX3BMgbsjI8SG0s26fCPILGzCRnjVbFmvCdE2dg9TAu mbxl7sFQNXTUXnfvEkXIp9sEEfxhQXaspd8DyP8kMaOImCrtVl7hraG0vHGVY19/1mjh EwGKK66yNZYgARg182/TRKYbkKix6ilSRHbhza7KhhQk5Cz7dTnNozaM1Ks46AoGCQ/t g2z9Z0GR5/VPKZWnWlTMhioWQtQMKFRoAxz67i8s3kPYsyaGHyzBxXmWCXUuAmbcytmx RulxWI7N5i0rmDicGopYKqXOytqnmSIsXlrXPo4/VINr6ImfyxJOI0Fn2yfGnQ6au5Nl 0I0g== 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 u33-20020a634561000000b004768f1dd47csi5172768pgk.791.2022.11.18.17.10.15; Fri, 18 Nov 2022 17:10:28 -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 S237728AbiKSAMn (ORCPT + 91 others); Fri, 18 Nov 2022 19:12:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237456AbiKSAL3 (ORCPT ); Fri, 18 Nov 2022 19:11:29 -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 5C89F4F1B6 for ; Fri, 18 Nov 2022 15:33:38 -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-0002Ak-CX; 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-0058QS-7J; 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-000070-6d; Fri, 18 Nov 2022 23:47:01 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Michael Trimarchi , Dario Binacchi , Oliver Graute , Wolfram Sang 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 237/606] Input: edt-ft5x06 - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:39:31 +0100 Message-Id: <20221118224540.619276-238-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 .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/input/touchscreen/edt-ft5x06.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 9ac1378610bc..ddd0f1f62458 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -1131,9 +1131,9 @@ static void edt_ft5x06_disable_regulators(void *arg) regulator_disable(data->iovcc); } -static int edt_ft5x06_ts_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int edt_ft5x06_ts_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); const struct edt_i2c_chip_data *chip_data; struct edt_ft5x06_ts_data *tsdata; u8 buf[2] = { 0xfc, 0x00 }; @@ -1504,7 +1504,7 @@ static struct i2c_driver edt_ft5x06_ts_driver = { .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, .id_table = edt_ft5x06_ts_id, - .probe = edt_ft5x06_ts_probe, + .probe_new = edt_ft5x06_ts_probe, .remove = edt_ft5x06_ts_remove, }; -- 2.38.1