Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14990887rwb; Mon, 28 Nov 2022 07:00:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Kvvzi+YY8L0zOZDFGSTd1zALdP6w4TVwISWGqi3llRP0V15ZjG+vM2glN1tR+KHg7TBdy X-Received: by 2002:a63:5261:0:b0:477:e6ef:2ed2 with SMTP id s33-20020a635261000000b00477e6ef2ed2mr13639739pgl.219.1669647632220; Mon, 28 Nov 2022 07:00:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669647632; cv=none; d=google.com; s=arc-20160816; b=xnWBw4r8P/kAkNN4UN5cXUsDFK3ZgnhlJxR33ELhPNibgL3Nd/EyKj6lHxHqwthp1d sZOT6123SjY1VnMY6vBoYZYG0YrdY+71/AHxn2duwwo86eLitvIqh3vhF/Wkc4acXCUe Yx5m8aNy2F9+utrS27mbsVQNDJCvdK7o1R3AdobL3/d5sKqGcJ6BJMrQO5BKS/g8XRdX ONJBGIuJio4C9+ZLjiAgkHCny9hq4HXvxutPyuH9FMAxd6HnWzZwUODfeUSH2KEy30Cn H8j+gqrtmxmuwxbLm46YQwKYb7Z/sEgkvAeEthBJ+tmdyAo14N125em0toHpNrlLo7hO AeOw== 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=BAsmdstj5OlnEk28QuiyRdM0jNSu4a4GNlosnGWLu3Y=; b=fhEgcqi7itDzlntV7fTTYXNw8qjtuYQpDkQHiWXtDp+O9tPpSIGfxZqMJrxMNPQ75u 65729dBIlD+j9ZzTXOh8YciUQ+ymdFajCL9PadxeYRyV+ru3+c5bfoJkYYRMUNH9G3Tt zWq+LHXrU7muYVJtpR7MNUmFMjYgsVeIRvGlT0XjSo+WYPKK91MsBs63fVRh0Pw2kuM9 8rtkjjyo6tKzMO5o+RealsGrA+BF6iK2K0lI4xVQkRPveWWuLmTbhrhcXV8p4m3FV1vi +6QpVpGW2+fXwG47WXPDQQd4TMmwdJlq8q63xltsb8ojC1/Qq/cDTrVR83SlFPjOWIgk pFFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=JCWjH6jt; dkim=neutral (no key) header.i=@suse.de; 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 c6-20020a63d506000000b0046f57b135cesi12303557pgg.745.2022.11.28.07.00.19; Mon, 28 Nov 2022 07:00:32 -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=JCWjH6jt; dkim=neutral (no key) header.i=@suse.de; 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 S231921AbiK1Omb (ORCPT + 84 others); Mon, 28 Nov 2022 09:42:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232570AbiK1OmE (ORCPT ); Mon, 28 Nov 2022 09:42:04 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 285691AD9F; Mon, 28 Nov 2022 06:42:03 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 97B151F8C8; Mon, 28 Nov 2022 14:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669646522; 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=BAsmdstj5OlnEk28QuiyRdM0jNSu4a4GNlosnGWLu3Y=; b=JCWjH6jtRRXiDErJNqO58muuMjUd5J7fORqKBcHoDND1f8Jr8FXOmRx9X6okSOLPJXxX6o qOpiDQq4YSwYal8TAZZjlZBzyg5pxAiJZU+ETATJjsS2uQG79YufJ1pAEzMRKyBi5quYoG PvgfWsQAJs1VhP1axOOIZDFFkVE1YRs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669646522; 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=BAsmdstj5OlnEk28QuiyRdM0jNSu4a4GNlosnGWLu3Y=; b=PFpoYGW7ubVeY5LplGgltzuIbyjTcfF0VbkKcWbx4pgfULVGpC0aEZxlHajT1LsYOA5cj1 40iWFlo7BCxPzZCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3F9F31326E; Mon, 28 Nov 2022 14:42:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2NgbDrrIhGPzLgAAMHmgww (envelope-from ); Mon, 28 Nov 2022 14:42:02 +0000 Date: Mon, 28 Nov 2022 15:41:58 +0100 From: Jean Delvare To: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Cc: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , linux-kernel@vger.kernel.org Subject: Re: [PATCH 487/606] misc: eeprom/eeprom: Convert to i2c's .probe_new() Message-ID: <20221128154158.7a486ae9@endymion.delvare> In-Reply-To: <20221118224540.619276-488-uwe@kleine-koenig.org> References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-488-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:43:41 +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/misc/eeprom/eeprom.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/misc/eeprom/eeprom.c b/drivers/misc/eeprom/eeprom.c > index 8a841a75d893..32611100d5cd 100644 > --- a/drivers/misc/eeprom/eeprom.c > +++ b/drivers/misc/eeprom/eeprom.c > @@ -141,8 +141,7 @@ static int eeprom_detect(struct i2c_client *client, s= truct i2c_board_info *info) > return 0; > } > =20 > -static int eeprom_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int eeprom_probe(struct i2c_client *client) > { > struct i2c_adapter *adapter =3D client->adapter; > struct eeprom_data *data; > @@ -197,7 +196,7 @@ static struct i2c_driver eeprom_driver =3D { > .driver =3D { > .name =3D "eeprom", > }, > - .probe =3D eeprom_probe, > + .probe_new =3D eeprom_probe, > .remove =3D eeprom_remove, > .id_table =3D eeprom_id, > =20 Reviewed-by: Jean Delvare --=20 Jean Delvare SUSE L3 Support