From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752321AbcBFQLo (ORCPT ); Sat, 6 Feb 2016 11:11:44 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:50447 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbcBFQLh (ORCPT ); Sat, 6 Feb 2016 11:11:37 -0500 Subject: Re: [PATCH v6 3/3] gpio: tps65086: Add GPO driver for the TPS65086 PMIC To: Linus Walleij References: <1453737012-3130-1-git-send-email-afd@ti.com> <1453737012-3130-4-git-send-email-afd@ti.com> CC: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Alexandre Courbot , Samuel Ortiz , Lee Jones , Liam Girdwood , Mark Brown , "devicetree@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" From: "Andrew F. Davis" Message-ID: <56B61B2B.2020001@ti.com> Date: Sat, 6 Feb 2016 10:11:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/2016 08:43 AM, Linus Walleij wrote: > On Mon, Jan 25, 2016 at 4:50 PM, Andrew F. Davis wrote: > >> Add support for the TPS65086 PMIC GPOs. >> >> TPS65086 has four configurable GPOs that can be used for several >> purposes. These are output only. >> >> Signed-off-by: Andrew F. Davis > (...) >> +static inline struct tps65086_gpio *to_tps65086_gpio(struct gpio_chip *chip) >> +{ >> + return container_of(chip, struct tps65086_gpio, chip); >> +} > > Remove this and use gpiochip_get_data() instead. > >> + ret = gpiochip_add(&gpio->chip); > > And use gpiochip_add_data() to pass what gpiochip_get_data() > will return. > > Apart from that no strong opinions. > > If there is a header file dependency this either has to go to > Lee's tree with my ACK, or wait until the next kernel cycle. > But first change the above. > > Yours, > Linus Walleij > Changes made, I will resend this part as its own patch as the other components have been taken. Thanks, Andrew