Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2112917ybi; Sun, 9 Jun 2019 04:07:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTkRl4Ei3NEhpCTuKuZ64Mson+RalV3WatGGAQt+kWNARe6DJjbSBnhpjw19tvE/CNWm8P X-Received: by 2002:aa7:9834:: with SMTP id q20mr26430630pfl.196.1560078472672; Sun, 09 Jun 2019 04:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560078472; cv=none; d=google.com; s=arc-20160816; b=z3bDxgC61kgAUgeb2zQH+i+zqM7NOLkZg0sohZYmCn7LtZfg0oh/GP/zjo+A/viXyo jjs46EVZ1GNwzDEK2ldu4/j8TM9WmwnDpL/mVIqXipyGh2MpVKXeT76/uZ1bYcoJ5ZT6 vuxoBbdAF3wMm9f+EAq6t7PEMCyyJyvMqVUJ/r38oSYrJ4f5JpqWYpHxmAp2ItU+0oRs S+Qr/+Hc4GD4dZy1WqarAhMnQ21TSskrIwTGFZ8HyHWUYWAPbo+UalW8w0grKfVSh9DY VCXcyckD5jXWBXe771Yu29Hv9XKd4mRNgbYp+GTVF+223MZioiPT09don43f1buPMcvP KceA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XoIOcg+IlIeZCvBJ3UTCCboLl2pXbz0X1JZ/8Ud+I0I=; b=Qdeb6HY9AcM7wMRoCB8uR8pHJHV3jccMmI8ttB4HFcMAjZckn8MGZhyiAm3g7AzMX9 Y5tsvXR9G2VVXz8lzoqXScq9zkjlxwGzwyhhXQgDPzbQ29NgWeiFRd9FQ087k1rDAlG8 naGYZ+/4oTnrZDVCzn+5e2s3vLgFPZ554oJmtV8jsdQMhTOz6UXxXlRCzBsKtYr9gTXS prv2voQbRXTIF0sp7ZfdXwLYeuvcd/5VF5TekWEutjB2GYm0UK4/Ao9ZLN+wVE1axcs2 PWXaAuctgYNDPd4pNyh8fzodOZktuv0oWjuHXGHrhn8g/AcfrwiztbBO1M0eaKUdrN3J wh/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si7117819plo.46.2019.06.09.04.07.36; Sun, 09 Jun 2019 04:07:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728416AbfFILFX (ORCPT + 99 others); Sun, 9 Jun 2019 07:05:23 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:54485 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728095AbfFILFX (ORCPT ); Sun, 9 Jun 2019 07:05:23 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 362B4802CC; Sun, 9 Jun 2019 13:05:10 +0200 (CEST) Date: Sun, 9 Jun 2019 13:05:20 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Wolfram Sang , linux-i2c@vger.kernel.org, Dan Murphy , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/34] leds: leds-pca955x: simplify getting the adapter of a client 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" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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--