Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2777912rwl; Fri, 6 Jan 2023 10:41:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXtu8lFBf+o1eq/v+EjB15mhUaXoCUpSPNzD0UGPvPpZUVwo53eYsPSQc4Ghe5Qgjre+pdhI X-Received: by 2002:aa7:d60e:0:b0:488:f6a3:2dd6 with SMTP id c14-20020aa7d60e000000b00488f6a32dd6mr30145875edr.41.1673030479206; Fri, 06 Jan 2023 10:41:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673030479; cv=none; d=google.com; s=arc-20160816; b=eBwKzJrerZo4t9sINLOWd6XSWNQ0j8IvxXbLEIYX1ziOyUQinosubHQL7K/KE+MT3K hdyf1NqjJHB9nZ5PORQvjuYoYKd5X9v4/36arWtwgCqO1Yxh3+OHcXaZYAG1XHrbJ3RT ip34XsRWDGXAAkyFsO2KXpy7PaCAKgJKxchHandPOe05QF8XZeKtNfz6ZoRU66vuNOg/ P2yQDgX5SMBl6omACX8Ya0p/i9lgK4iyx/xSW9iOUMiPvGqHTvfIUKG6S6nP/x9EOKjD LPmFtf/c7rlIJ0P/WOmtvSupxvZ+CaVh6pE/ui1JBXxPsbkJPVvM7xTmOyDghqJf3vsT gr2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=d7nezepH3wioqpSmG1ItKWYhhlrOpt7HiUosBwPq7FM=; b=YnMjPyf++AcfNZB/W21w7d/BKe+q8vV69pmd5zhPGr+y3DxAOqcf+euWdLfA0GcicT z5P94aWP56BpFmNhY6Mp4/9ubP+HMmKtDsH/0YLOmIjX4TzwMcJ1mgxSQTNimnzFl0bz zFeEdgThlIPnIBhT8F+n6ML+l7BLIqBKn3qa/yTricS9alAUkMW0y6Iw/iQTVIZiz9rW 5yy3hjYal5+2huEod3M3rQRQr+3ok1hYN47EQ4cYUKpu/wsO8uy1r3vOEUE6xM/NJ/dd XML1dvwapqH171ON0ByMxoIwZxs8i9NRXrgNGhlWoJ4ih75pb+h9rmlac7CApEOtTlTY rVwA== 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 m5-20020a056402430500b0046a8fe6d173si2792642edc.456.2023.01.06.10.41.06; Fri, 06 Jan 2023 10:41:19 -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 S235605AbjAFRs7 (ORCPT + 54 others); Fri, 6 Jan 2023 12:48:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235545AbjAFRs5 (ORCPT ); Fri, 6 Jan 2023 12:48:57 -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 4387334D52 for ; Fri, 6 Jan 2023 09:48:56 -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 1pDqpg-0008Tu-JF; Fri, 06 Jan 2023 18:48:44 +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 1pDqpf-004FsQ-3J; Fri, 06 Jan 2023 18:48:43 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pDqpd-00Aie3-VY; Fri, 06 Jan 2023 18:48:41 +0100 Date: Fri, 6 Jan 2023 18:48:41 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Alexandre Belloni Cc: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH 560/606] rtc: ds1307: Convert to i2c's .probe_new() Message-ID: <20230106174841.kqgfnqua4vgd4kwo@pengutronix.de> References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-561-uwe@kleine-koenig.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fw3yxbv2qlboln3r" Content-Disposition: inline In-Reply-To: <20221118224540.619276-561-uwe@kleine-koenig.org> 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.2 required=5.0 tests=BAYES_00,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 --fw3yxbv2qlboln3r Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Alexandre, On Fri, Nov 18, 2022 at 11:44:54PM +0100, Uwe Kleine-K=F6nig wrote: > From: Uwe Kleine-K=F6nig >=20 > .probe_new() doesn't get the i2c_device_id * parameter, so determine > that explicitly in the probe function. >=20 > Signed-off-by: Uwe Kleine-K=F6nig > --- > drivers/rtc/rtc-ds1307.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c > index 7c2276cf5514..b49c02fd78f7 100644 > --- a/drivers/rtc/rtc-ds1307.c > +++ b/drivers/rtc/rtc-ds1307.c > @@ -1713,9 +1713,9 @@ static const struct regmap_config regmap_config =3D= { > .val_bits =3D 8, > }; > =20 > -static int ds1307_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int ds1307_probe(struct i2c_client *client) > { > + const struct i2c_device_id *id =3D i2c_client_get_device_id(client); > struct ds1307 *ds1307; > const void *match; > int err =3D -ENODEV; > @@ -2012,7 +2012,7 @@ static struct i2c_driver ds1307_driver =3D { > .name =3D "rtc-ds1307", > .of_match_table =3D ds1307_of_match, > }, > - .probe =3D ds1307_probe, > + .probe_new =3D ds1307_probe, > .id_table =3D ds1307_id, > }; This is the last remaining rtc patch in my i2c probe_new stack. Would you mind to apply it? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --fw3yxbv2qlboln3r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmO4XvcACgkQwfwUeK3K 7AmakQf+Oo3+DP0Zw3V/BK3WK+JqVLEPAelaiSrfx1ToWpUat8fgoaX3z4fz9gfq SWG5IHiiMfXZumdOi5jGUG7A9EW2bHJM2qDM74ctScnThnsB1SThhD0pbJqNh8e2 JSloiA0vNoxWCsA59Ui1AmRTS6ce2fBcgr1Rg+7Uz4aXqOvDweNuSofuM3GXokYY 9eIuH8AToIfEHAHZns8rkwyBbN92xE8Qai4EolIluFUWM/fO3VhF0/2q3jyWPQqN s+3pW8FuS///F5Ytcu52vGC+yO2IkbLr4iaTJBB2qZhSvkhH6gADPXXTXhkb4Sxp 4QXHKSbktA6WR83ZyKWO4/D+XbP2iw== =2ULL -----END PGP SIGNATURE----- --fw3yxbv2qlboln3r--