Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2119765ybi; Sun, 9 Jun 2019 04:17:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwETihCUBVJTFp7Jqpyy5C4o+LjRrYxlhdwf2gO3idHhXi4vUAtHkDhDTefwXDz+1+hofE8 X-Received: by 2002:a17:90a:36a9:: with SMTP id t38mr15889666pjb.19.1560079054718; Sun, 09 Jun 2019 04:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560079054; cv=none; d=google.com; s=arc-20160816; b=CjRQ8YXGDtCbBOI5vq72f0n2cF+yJetoLogEfIYymFkPPOLZ0pcV7GeJ5DfPvSJkv+ jOuqHMDHiR/S2cisTKKd5F1FJpLkMia3QPK0bsU0JlXPA1beV/FClvLyecuf1SNiJCgb 58U/pjd/WueUaDmrRyelwU+IgybWyZPpY/DldxG1NOYFueV6eXSmtJwDz8hhUgsik5tV mwBJ+NUc9uxQ/0gfkV0hE7/g4SkbwYQy1y42HAwGSIzbKsVCBqu7P9czOoE4ni6boNSE 12WHyW3ISHpW8D3w6xSRnXpfwdim7Tr0VEGUNsxPla5ptZNGY/KP/POmu45t+aH2VXUy TwTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=9e/6BEecOpB8/qEVGj7iB3+DWeBNFNef87WWsJLtnfU=; b=SwNCIoVhk/m+FN4msV4lvmKnvOEic3KCGH6oXNo+N+iUEGUAgozTAdwgW8deXvaCbd Hk26g8Zo7rRl4C/6g8J80T2Vc7HPK84kUUI3eFKIZrwKleTe1mmaN24mMrvVqZ1peUSq 445zohbVWsfV29jLMK67xrpryYKNL6BSHx03GK1siOHumOFBnOn67M9RT2MS0A8b3rzy PVAf2EiK8IAUfiydKh8XK63nFJuFusji0cLXRedGKi4QEzxt9TuGbERNZa52HIw0Lv8d ZrjKlrsjrRzuSuM0NROtKrtAMBViS1GgMKGOYOIA6Sexn6yG5oUggj5ARsNLUHoM8IzP MoLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vcz5mKQu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q125si7210063pfq.163.2019.06.09.04.17.18; Sun, 09 Jun 2019 04:17:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vcz5mKQu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728363AbfFILDp (ORCPT + 99 others); Sun, 9 Jun 2019 07:03:45 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46425 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728095AbfFILDp (ORCPT ); Sun, 9 Jun 2019 07:03:45 -0400 Received: by mail-wr1-f66.google.com with SMTP id n4so6260684wrw.13; Sun, 09 Jun 2019 04:03:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9e/6BEecOpB8/qEVGj7iB3+DWeBNFNef87WWsJLtnfU=; b=vcz5mKQuwLx/2iD/T4aGbNqV6Snpbc3WihScPLk2NJb2cMS5xiH8bS14GZLRKlF6Zu /yWqdsOiyh63B8f7cP/rEyi/Nxed2cEDLKrHmF/WMCu5t6boN/H/TF+aaFKsyFrarMUd zKKAfmQeO/n5nAq0wu2xwllqzYO9oHxbYFz+f2z58B1vo9FEXpJ+E/o3aV9/hFZWQEl3 aXZi5MRXc4ic4yuM4M8TWUkPO3MqC2FUY/lrxCS0WmrUT9Wids21NprRl6sVR96k20Jf k+ybke5BXAwE9EesTNu3gghJENKXO2c9j3rd0Lyq/x6KbFDVoub61ugKL/SfQrIHihWb ovAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9e/6BEecOpB8/qEVGj7iB3+DWeBNFNef87WWsJLtnfU=; b=XaOPwRCuSVMP7qMheLT/4FC6NzErI/EYOOWhxIEhHkQvsu0XQsLCCgf/siTJTf7Br3 pM5ZKe9K0mO+AkZAG2SnbjP/Xl1qRt61HBERu+yXeJJA6dKeljTcbeRnCfsNjUdVu4pD pQZ1IlNH9LJilQ2aNdUayJuJKvIVT0kdAxWXeVn5vTMSZNj2FeIkS64U6rk0M/etEjuo VJ6aINcc7DjQN2+kVNNNaFoRekuumfJrR2zuGU/q+VtWfZhOZBRWn4EIm7ZkJQRZKclR O4p6bpazQm9JT58hJcKGEl2rt2Z4sNZ1VZZmU6K+wAoKCBfVKUEc50xJLRUjKHrS3/87 Su8w== X-Gm-Message-State: APjAAAUA1mK1N5kT6sJ9RCXId0PlZMgO0mBvqcqCbjJIC2DKB9FY0BHQ 4pyG3aDnJ9u6LJLareltYGQUVgeA X-Received: by 2002:adf:efc8:: with SMTP id i8mr12829342wrp.220.1560078223105; Sun, 09 Jun 2019 04:03:43 -0700 (PDT) Received: from [192.168.1.17] (bkq78.neoplus.adsl.tpnet.pl. [83.28.184.78]) by smtp.gmail.com with ESMTPSA id d10sm11587976wrh.91.2019.06.09.04.03.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jun 2019 04:03:42 -0700 (PDT) Subject: Re: [PATCH 04/34] leds: leds-pca955x: simplify getting the adapter of a client To: Wolfram Sang , linux-i2c@vger.kernel.org Cc: Pavel Machek , Dan Murphy , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-5-wsa+renesas@sang-engineering.com> From: Jacek Anaszewski Message-ID: Date: Sun, 9 Jun 2019 13:03:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190608105619.593-5-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wolfram, Thank you for the patches. 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 = 0; > > chip = &pca955x_chipdefs[id->driver_data]; > - adapter = to_i2c_adapter(client->dev.parent); > + adapter = client->adapter; > pdata = dev_get_platdata(&client->dev); > if (!pdata) { > pdata = pca955x_get_pdata(client, chip); > For both 4/34 and 5/34: Acked-by: Jacek Anaszewski -- Best regards, Jacek Anaszewski