mbox series

[00/13] iio: Use sysfs_emit()

Message ID 20211216185217.1054495-1-lars@metafoo.de (mailing list archive)
Headers show
Series iio: Use sysfs_emit() | expand

Message

Lars-Peter Clausen Dec. 16, 2021, 6:52 p.m. UTC
I started the sysfs_emit() conversion during the last end-of-year break
starting with the IIO core. It is end-of-year break again, so here is a bit
more.

This series contains conversions for simple users which all follow the
pattern of `return sprintf(....)` or similar. The series also only covers
cases where the attributes are completely custom and can not be converted
to use iio_read_raw or iio_read_available. These other cases will be
handled seperately by converting them to use the IIO APIs rather than
device attributes. But this requires a bit more validation work than the
simple straigh forward conversions.

Lars-Peter Clausen (13):
  iio: core: Use sysfs_emit()
  iio: dmaengine-buffer: Use sysfs_emit()
  iio: ad7192: Use sysfs_emit()
  iio: ad9523: Use sysfs_emit()
  iio: as3935: Use sysfs_emit()
  iio: ina2xx-adc: sysfs_emit()
  iio: lm3533: Use sysfs_emit()
  iio: max31856: Use sysfs_emit()
  iio: max31865: Use sysfs_emit()
  iio: max9611: Use sysfs_emit()
  iio: ms_sensors: Use sysfs_emit()
  iio: scd4x: Use sysfs_emit()
  iio: sps30: Use sysfs_emit()

 drivers/iio/adc/ad7192.c                           | 4 ++--
 drivers/iio/adc/ina2xx-adc.c                       | 2 +-
 drivers/iio/adc/max9611.c                          | 2 +-
 drivers/iio/buffer/industrialio-buffer-dmaengine.c | 2 +-
 drivers/iio/chemical/scd4x.c                       | 2 +-
 drivers/iio/chemical/sps30.c                       | 2 +-
 drivers/iio/common/ms_sensors/ms_sensors_i2c.c     | 4 ++--
 drivers/iio/frequency/ad9523.c                     | 2 +-
 drivers/iio/industrialio-buffer.c                  | 4 ++--
 drivers/iio/industrialio-core.c                    | 2 +-
 drivers/iio/light/lm3533-als.c                     | 6 +++---
 drivers/iio/proximity/as3935.c                     | 4 ++--
 drivers/iio/temperature/max31856.c                 | 4 ++--
 drivers/iio/temperature/max31865.c                 | 4 ++--
 14 files changed, 22 insertions(+), 22 deletions(-)

Comments

Jonathan Cameron Jan. 16, 2022, 4:54 p.m. UTC | #1
On Thu, 16 Dec 2021 19:52:04 +0100
Lars-Peter Clausen <lars@metafoo.de> wrote:

> I started the sysfs_emit() conversion during the last end-of-year break
> starting with the IIO core. It is end-of-year break again, so here is a bit
> more.
> 
> This series contains conversions for simple users which all follow the
> pattern of `return sprintf(....)` or similar. The series also only covers
> cases where the attributes are completely custom and can not be converted
> to use iio_read_raw or iio_read_available. These other cases will be
> handled seperately by converting them to use the IIO APIs rather than
> device attributes. But this requires a bit more validation work than the
> simple straigh forward conversions.
> 

Applied with tweaks as mentioned in replies to individual patches.

Thanks,

Jonathan

> Lars-Peter Clausen (13):
>   iio: core: Use sysfs_emit()
>   iio: dmaengine-buffer: Use sysfs_emit()
>   iio: ad7192: Use sysfs_emit()
>   iio: ad9523: Use sysfs_emit()
>   iio: as3935: Use sysfs_emit()
>   iio: ina2xx-adc: sysfs_emit()
>   iio: lm3533: Use sysfs_emit()
>   iio: max31856: Use sysfs_emit()
>   iio: max31865: Use sysfs_emit()
>   iio: max9611: Use sysfs_emit()
>   iio: ms_sensors: Use sysfs_emit()
>   iio: scd4x: Use sysfs_emit()
>   iio: sps30: Use sysfs_emit()
> 
>  drivers/iio/adc/ad7192.c                           | 4 ++--
>  drivers/iio/adc/ina2xx-adc.c                       | 2 +-
>  drivers/iio/adc/max9611.c                          | 2 +-
>  drivers/iio/buffer/industrialio-buffer-dmaengine.c | 2 +-
>  drivers/iio/chemical/scd4x.c                       | 2 +-
>  drivers/iio/chemical/sps30.c                       | 2 +-
>  drivers/iio/common/ms_sensors/ms_sensors_i2c.c     | 4 ++--
>  drivers/iio/frequency/ad9523.c                     | 2 +-
>  drivers/iio/industrialio-buffer.c                  | 4 ++--
>  drivers/iio/industrialio-core.c                    | 2 +-
>  drivers/iio/light/lm3533-als.c                     | 6 +++---
>  drivers/iio/proximity/as3935.c                     | 4 ++--
>  drivers/iio/temperature/max31856.c                 | 4 ++--
>  drivers/iio/temperature/max31865.c                 | 4 ++--
>  14 files changed, 22 insertions(+), 22 deletions(-)
>