Messages in this thread | | | From | "Mani, Rajmohan" <> | Subject | RE: [PATCH v1 2/3] gpio: Add support for TPS68470 GPIOs | Date | Mon, 12 Jun 2017 00:18:29 +0000 |
| |
Hi Linus,
> Subject: Re: [PATCH v1 2/3] gpio: Add support for TPS68470 GPIOs
> > +static inline struct tps68470_gpio_data *to_gpio_data(struct > > +gpio_chip *gpiochp) { > > + return container_of(gpiochp, struct tps68470_gpio_data, gc); } > > Please use the data pointe inside gpio_chip. >
My bad. I completely missed the following line. Will fix it v3.
> struct tps68470_gpio_data *foo = gpiochip_get_data(gc); >
| |