Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1327809

Re: [PATCH v6 3/3] gpio: tps65086: Add GPO driver for the TPS65086 PMIC

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v6 3/3] gpio: tps65086: Add GPO driver for the TPS65086 PMIC
Date 2016-02-05 15:50 +0100
Message-ID <qYPRU-1xp-3@gated-at.bofh.it> (permalink)
References <qURIC-68y-7@gated-at.bofh.it> <qURIC-68y-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jan 25, 2016 at 4:50 PM, Andrew F. Davis <afd@ti.com> 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 <afd@ti.com>
(...)
> +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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH v6 3/3] gpio: tps65086: Add GPO driver for the TPS65086 PMIC Linus Walleij <linus.walleij@linaro.org> - 2016-02-05 15:50 +0100
  Re: [PATCH v6 3/3] gpio: tps65086: Add GPO driver for the TPS65086  PMIC "Andrew F. Davis" <afd@ti.com> - 2016-02-06 17:20 +0100

csiph-web