Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7051344ybi; Thu, 13 Jun 2019 08:45:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKhz63M8nvz3U/3Koo0diMe1zNDGIEjeVj+xGgru3oJUuG9IZLdz+JNLj5EaZqRFwT8f5R X-Received: by 2002:a17:90a:a415:: with SMTP id y21mr6295759pjp.75.1560440721728; Thu, 13 Jun 2019 08:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440721; cv=none; d=google.com; s=arc-20160816; b=GF0LKTNLKJPnzFkF9SP0s13DLeGsyskVVcmdiEUxWdJuD4HWKqhn5u3p2xYBwrrpFa I2Lo9qKIQ3zrYsjjUFRkL5rWTWXp9gVViDkLFEgiyfNjKx82wnbg+GVGZ0tR7/CwZzG8 heS5h7arYBqFCYD8h3QsigIeh15+a/UdlikOMqLs8d/EB1RWgGQEqPYmJaXOju/wgil8 JfShfR+VHxFi5+wzgnQcejFPRr4rDj/Z/5qf0uQX/6HIcVPnQtMAEmh8fLnZ84JCO61F WkgHpbIWvynw7nywGNQWcJmBryMhPMd0Pt6VVYeJkLE7x1ZdQOqqw8K01oCwDiILgVhE VQTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pH6+/ESP+kzyUXvYs2F5JterAgzvPsrSXfFtri2qkI4=; b=SR8D2E5GFh9OwkM7tn+d+TXIgbgodODWY/AGEeNjUaRRLDCYlREYzJiErEIalx6AJP 8ibBxLXqULLUj7AC9lDXlZjeZLXRLTWBzKeVHRG/nujo4VHb5E5RidtoYVK14rCCm8wo cyZ+EK+NObWusIm/R2+IFH0xPSSko6PfDTIn58KP7jUamZm1Ge2/Wen0SLhJC/kuoC/t IjE3lKkk3IdPYY+/OrZRNnT13V7Kda9qWW8DFlp0DPeL/Ndo78EToF+5l9FdnJJDZfsu AtTR3/gS8mRa8IbfCNjNsKeDVGEzCqDF35fbRiaZ/MDg0G3fJ2RtfrIFnlwnCp79sXeY uOOQ== 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 r71si3918596pfc.152.2019.06.13.08.45.06; Thu, 13 Jun 2019 08:45:21 -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 S1731339AbfFMPnj (ORCPT + 99 others); Thu, 13 Jun 2019 11:43:39 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40472 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731834AbfFMJrF (ORCPT ); Thu, 13 Jun 2019 05:47:05 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 712BF25B7FA; Thu, 13 Jun 2019 19:47:03 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 75955940483; Thu, 13 Jun 2019 11:47:01 +0200 (CEST) Date: Thu, 13 Jun 2019 11:47:01 +0200 From: Simon Horman To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Jacek Anaszewski , Pavel Machek , Dan Murphy , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/34] leds: leds-tca6507: simplify getting the adapter of a client Message-ID: <20190613094701.5jfat4wu4ug57bpl@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-6-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-6-wsa+renesas@sang-engineering.com> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 08, 2019 at 12:55:44PM +0200, 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 Reviewed-by: Simon Horman > --- > > Please apply to your subsystem tree. > > drivers/leds/leds-tca6507.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c > index c59035e157d1..58be20cae183 100644 > --- a/drivers/leds/leds-tca6507.c > +++ b/drivers/leds/leds-tca6507.c > @@ -758,7 +758,7 @@ static int tca6507_probe(struct i2c_client *client, > int err; > int i = 0; > > - adapter = to_i2c_adapter(client->dev.parent); > + adapter = client->adapter; > pdata = dev_get_platdata(&client->dev); > > if (!i2c_check_functionality(adapter, I2C_FUNC_I2C)) > -- > 2.19.1 >