mbox series

[0/2] Use OF API to get the driver data

Message ID 20181116094722.1070-1-sst@poczta.fm (mailing list archive)
Headers show
Series Use OF API to get the driver data | expand

Message

Slawomir Stepien Nov. 16, 2018, 9:47 a.m. UTC
This patch series will change how the driver finds out the device data. Now it
will first try to use OF API and then, if needed, fallback to the spi framework
capabilities.

Slawomir Stepien (2):
  iio: potentiometer: mcp4131: use of_device_get_match_data()
  iio: potentiometer mcp4131: use spi_get_device_id() only when needed

 drivers/iio/potentiometer/mcp4131.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Comments

Jonathan Cameron Nov. 16, 2018, 11:46 a.m. UTC | #1
On Fri, 16 Nov 2018 10:47:20 +0100
Slawomir Stepien <sst@poczta.fm> wrote:

> This patch series will change how the driver finds out the device data. Now it
> will first try to use OF API and then, if needed, fallback to the spi framework
> capabilities.

Hi Slawomir.

A quick process point.  The cover letter should definitely mention the driver
the patch is changing.

iio:potentiometer:mcp4131: Use OF API to get the driver data.

No need to resend for that though, just one for future reference!

Thanks,

Jonathan
> 
> Slawomir Stepien (2):
>   iio: potentiometer: mcp4131: use of_device_get_match_data()
>   iio: potentiometer mcp4131: use spi_get_device_id() only when needed
> 
>  drivers/iio/potentiometer/mcp4131.c | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
>
Slawomir Stepien Nov. 16, 2018, 12:16 p.m. UTC | #2
On lis 16, 2018 11:46, Jonathan Cameron wrote:
> On Fri, 16 Nov 2018 10:47:20 +0100
> Slawomir Stepien <sst@poczta.fm> wrote:
> 
> > This patch series will change how the driver finds out the device data. Now it
> > will first try to use OF API and then, if needed, fallback to the spi framework
> > capabilities.
> 
> Hi Slawomir.

Hi

> A quick process point.  The cover letter should definitely mention the driver
> the patch is changing.

Oops, sorry for that!

> iio:potentiometer:mcp4131: Use OF API to get the driver data.
> 
> No need to resend for that though, just one for future reference!
> 
> Thanks,
> 
> Jonathan
> > 
> > Slawomir Stepien (2):
> >   iio: potentiometer: mcp4131: use of_device_get_match_data()
> >   iio: potentiometer mcp4131: use spi_get_device_id() only when needed
> > 
> >  drivers/iio/potentiometer/mcp4131.c | 11 +++++++----
> >  1 file changed, 7 insertions(+), 4 deletions(-)