mbox series

[0/8] iio: adc: Maxim and TI ADC driver cleanups

Message ID 20210516172520.1398835-1-jic23@kernel.org (mailing list archive)
Headers show
Series iio: adc: Maxim and TI ADC driver cleanups | expand

Message

Jonathan Cameron May 16, 2021, 5:25 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

A few random bits of tidying up for a Sunday evening.
Mostly devm stuff, but other things in here as well that came up whilst
I was looking.

Note this was a fairly random selection, so isn't implying there
aren't similar cleanups to be done in other TI and Maxim drivers.
(there definitely are plenty more of these if anyone is bored ;)

Cc: Alexandru Ardelean <aardelean@deviqon.com>

Jonathan Cameron (8):
  iio: adc: max11100: Use get_unaligned_be16() rather than opencoding.
  iio: adc: max11100: Use devm_ functions for rest of probe()
  iio: adc: max1118: Use devm_ managed functions for all of probe
  iio: adc: max1118: Avoid jumping back and forth between spi and iio
    structures
  iio: adc: ti-adc081c: Use devm managed functions for all of probe()
  iio: adc: ti-adc0832: Use devm managed functions for all of probe()
  iio: adc: ti-adc108s102: Use devm managed functions for all of probe()
  iio: adc: ti-adc161s626: Use devm managed functions for all of probe.

 drivers/iio/adc/max11100.c      | 32 ++++++----------
 drivers/iio/adc/max1118.c       | 68 ++++++++++++---------------------
 drivers/iio/adc/ti-adc081c.c    | 43 +++++++--------------
 drivers/iio/adc/ti-adc0832.c    | 39 ++++++-------------
 drivers/iio/adc/ti-adc108s102.c | 45 ++++++++--------------
 drivers/iio/adc/ti-adc161s626.c | 50 +++++++++---------------
 6 files changed, 94 insertions(+), 183 deletions(-)

Comments

Jonathan Cameron May 22, 2021, 6:31 p.m. UTC | #1
On Sun, 16 May 2021 18:25:12 +0100
Jonathan Cameron <jic23@kernel.org> wrote:

> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> 
> A few random bits of tidying up for a Sunday evening.
> Mostly devm stuff, but other things in here as well that came up whilst
> I was looking.
> 
> Note this was a fairly random selection, so isn't implying there
> aren't similar cleanups to be done in other TI and Maxim drivers.
> (there definitely are plenty more of these if anyone is bored ;)
> 
> Cc: Alexandru Ardelean <aardelean@deviqon.com>

Series applied with the minor tweak to drop spi_set_drvdata in two 
drivers as pointed out by Alex.

Thanks,

Jonathan

> 
> Jonathan Cameron (8):
>   iio: adc: max11100: Use get_unaligned_be16() rather than opencoding.
>   iio: adc: max11100: Use devm_ functions for rest of probe()
>   iio: adc: max1118: Use devm_ managed functions for all of probe
>   iio: adc: max1118: Avoid jumping back and forth between spi and iio
>     structures
>   iio: adc: ti-adc081c: Use devm managed functions for all of probe()
>   iio: adc: ti-adc0832: Use devm managed functions for all of probe()
>   iio: adc: ti-adc108s102: Use devm managed functions for all of probe()
>   iio: adc: ti-adc161s626: Use devm managed functions for all of probe.
> 
>  drivers/iio/adc/max11100.c      | 32 ++++++----------
>  drivers/iio/adc/max1118.c       | 68 ++++++++++++---------------------
>  drivers/iio/adc/ti-adc081c.c    | 43 +++++++--------------
>  drivers/iio/adc/ti-adc0832.c    | 39 ++++++-------------
>  drivers/iio/adc/ti-adc108s102.c | 45 ++++++++--------------
>  drivers/iio/adc/ti-adc161s626.c | 50 +++++++++---------------
>  6 files changed, 94 insertions(+), 183 deletions(-)
>