Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7270782rwb; Tue, 6 Dec 2022 03:40:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4M05yISb3BidKgk6+kF2XHe+qKuUJqa+XIZyETjR+cO1L5v1BxL0pFJ9dw1xexRaN0HjN2 X-Received: by 2002:a05:6402:22ab:b0:46a:abc8:8018 with SMTP id cx11-20020a05640222ab00b0046aabc88018mr46142246edb.369.1670326829616; Tue, 06 Dec 2022 03:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670326829; cv=none; d=google.com; s=arc-20160816; b=fIYn5e9a937tLb7Iioe0iRj//XH0/+3FSVCIF34uIMfodtU7twKgOSH/QOt8ly3Nv8 xNcSI0R6M0XKrGqvPwqrPeAWNVtxsGdRvR6gnh08cNB0bjK7VYSZEt4XZICKOZiGoegN Wcg0D3hPm/l43FeiXMaMYcWLFfUUgcafmpSK742ilO8ESyLJAoMNKFPTJUWe/FAwtOnq DdM3DNmQxnf3tA1sAaXX4ZxFEiootjhkWIA4+yNUqLGuUTQoiYdqOVnZkE1G6YPnUIxh OfuweowJcNET6I6LPMqOzp8YtsOJfME588JSzdKouEhsSiru2W3cVeVH8vhfS7ES1162 OIcw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-signature; bh=zU63U5rl0Gy/gP66cO2xSLyu3IA011SG6jmil2B+TGs=; b=JDcr45cmYFDGJ5tb+1mk1U2PKfhEl84492CE+JNkR+2/8q89rG3gG6bbGxZ1CHGJDn 7Y+pUmcwLWjJLuLnXGqkG2beHBMOJreeGcxhIe2lNYjycFuNi7W88CrsRcqLHcQthXDF LLlE6sWSkeAacV1rHuPW6r0HpBkTrpkvXsA4zgyynGNG6CEklJxHQr3YmK66mjBq7D+N lGTsEbpGNnfjUNJKSqZw4JyHv55r47Kz1q6mEYFSP2VdPciDbUcEIo6aV6YsxNWanoZf ed1S8/jE/SnvT6SnSx0qkFrBZcdRoI/hAR+bONUui0m4iJL9yNwT/CN6TXHcn0H448+i KuzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=nm9OqpPh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=PXLrZkxQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga34-20020a1709070c2200b007c079eed73csi13401733ejc.416.2022.12.06.03.40.10; Tue, 06 Dec 2022 03:40:29 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=nm9OqpPh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=PXLrZkxQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234295AbiLFKtn (ORCPT + 79 others); Tue, 6 Dec 2022 05:49:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234242AbiLFKth (ORCPT ); Tue, 6 Dec 2022 05:49:37 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B7D8765A; Tue, 6 Dec 2022 02:49:36 -0800 (PST) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 067191FE57; Tue, 6 Dec 2022 10:49:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1670323775; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zU63U5rl0Gy/gP66cO2xSLyu3IA011SG6jmil2B+TGs=; b=nm9OqpPh/9KbT9vzqi+8RtGI7ev/VPOzYzMVXxAcBqlsRSi+pNiL4Hhv3S+MIP1lPMxMlz jLFSx5EZHxhvshIyNGSe2keW3Spgw9+qsB7ngB+KrtY0a+/W5S10BKPaFAhUNiSwnCqEob zjnaVP319ILd9/w/FclpvF6F8S/DYoI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1670323775; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zU63U5rl0Gy/gP66cO2xSLyu3IA011SG6jmil2B+TGs=; b=PXLrZkxQrAR01vnqC4GbEg9iWiU2dvABISIVbs3O5cPaCoyP3u4eTj3ZDChAFBAasX1L3o g2v6k+r8oIncahDg== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 81558132F3; Tue, 6 Dec 2022 10:49:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id Bb38HT4ej2NJNgAAGKfGzw (envelope-from ); Tue, 06 Dec 2022 10:49:34 +0000 Date: Tue, 6 Dec 2022 11:49:29 +0100 From: Jean Delvare To: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Cc: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Dmitry Torokhov , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 209/606] Input: atmel_captouch - Convert to i2c's .probe_new() Message-ID: <20221206114929.085b6f09@endymion.delvare> In-Reply-To: <20221118224540.619276-210-uwe@kleine-koenig.org> References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-210-uwe@kleine-koenig.org> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 On Fri, 18 Nov 2022 23:39:03 +0100, Uwe Kleine-K=C3=B6nig wrote: > From: Uwe Kleine-K=C3=B6nig >=20 > The probe function doesn't make use of the i2c_device_id * parameter so it > can be trivially converted. >=20 > Signed-off-by: Uwe Kleine-K=C3=B6nig > --- > drivers/input/misc/atmel_captouch.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/input/misc/atmel_captouch.c b/drivers/input/misc/atm= el_captouch.c > index 156c699a8913..d9704b174d3a 100644 > --- a/drivers/input/misc/atmel_captouch.c > +++ b/drivers/input/misc/atmel_captouch.c > @@ -161,8 +161,7 @@ static irqreturn_t atmel_captouch_isr(int irq, void *= data) > /* > * Probe function to setup the device, input system and interrupt > */ > -static int atmel_captouch_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int atmel_captouch_probe(struct i2c_client *client) > { > struct atmel_captouch_device *capdev; > struct device *dev =3D &client->dev; > @@ -264,7 +263,7 @@ static const struct i2c_device_id atmel_captouch_id[]= =3D { > MODULE_DEVICE_TABLE(i2c, atmel_captouch_id); > =20 > static struct i2c_driver atmel_captouch_driver =3D { > - .probe =3D atmel_captouch_probe, > + .probe_new =3D atmel_captouch_probe, > .id_table =3D atmel_captouch_id, > .driver =3D { > .name =3D "atmel_captouch", Reviewed-by: Jean Delvare --=20 Jean Delvare SUSE L3 Support