From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH 04/34] leds: leds-pca955x: simplify getting the adapter of a client Date: Sun, 9 Jun 2019 13:05:20 +0200 Message-ID: <20190609110519.GA2375@amd> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-5-wsa+renesas@sang-engineering.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Jacek Anaszewski Cc: Wolfram Sang , linux-i2c@vger.kernel.org, Dan Murphy , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-i2c@vger.kernel.org --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2019-06-09 13:03:40, Jacek Anaszewski wrote: > Hi Wolfram, >=20 > Thank you for the patches. >=20 > On 6/8/19 12:55 PM, Wolfram Sang wrote: > >We have a dedicated pointer for that, so use it. Much easier to read and > >less computation involved. > > > >Signed-off-by: Wolfram Sang > >--- > > > >Please apply to your subsystem tree. > > > > drivers/leds/leds-pca955x.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > >diff --git a/drivers/leds/leds-pca955x.c b/drivers/leds/leds-pca955x.c > >index a9f5dad55956..460626d81c6a 100644 > >--- a/drivers/leds/leds-pca955x.c > >+++ b/drivers/leds/leds-pca955x.c > >@@ -432,7 +432,7 @@ static int pca955x_probe(struct i2c_client *client, > > int ngpios =3D 0; > > chip =3D &pca955x_chipdefs[id->driver_data]; > >- adapter =3D to_i2c_adapter(client->dev.parent); > >+ adapter =3D client->adapter; > > pdata =3D dev_get_platdata(&client->dev); > > if (!pdata) { > > pdata =3D pca955x_get_pdata(client, chip); > > >=20 > For both 4/34 and 5/34: >=20 > Acked-by: Jacek Anaszewski 4 and 5: Acked-by: Pavel Machek But I wonder if it should go through the leds tree? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --AqsLC8rIMeq19msA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlz85+8ACgkQMOfwapXb+vK6YQCfbTAciJbPFiikZaSzNawQ4CTP iXgAn15Z789Y3jOmbvgrZWlNJ11pvPAE =V47/ -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--