Re: [PATCH] staging: iio: ad2s1210: Switch to the gpio descriptor interface

From: Slawomir Stepien
Date: Sun Oct 21 2018 - 05:29:47 EST


On paÅ 21, 2018 10:31, Slawomir Stepien wrote:
> On paÅ 21, 2018 11:49, Nishad Kamdar wrote:
> > -static int ad2s1210_setup_gpios(struct ad2s1210_state *st)
> > +static int ad2s1210_setup_gpios(struct spi_device *spi,
> > + struct ad2s1210_state *st)
>
> This change is not needed. The st has the spi_device inside. Use container_of()
> macro here.

Wait...what? I mean use direct access using st->sdev.

--
Slawomir Stepien