linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/9] iio: remove iio_buffer_set_attrs() and assign buffer attrs during alloc
@ 2020-09-29  7:08 Alexandru Ardelean
  2020-09-29  7:09 ` [PATCH v2 1/9] iio: buffer: dmaengine: unwrap the use of iio_buffer_set_attrs() Alexandru Ardelean
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Alexandru Ardelean @ 2020-09-29  7:08 UTC (permalink / raw)
  To: linux-iio, linux-kernel
  Cc: jic23, eugen.hristev, nicolas.ferre, ludovic.desroches, bleung,
	enric.balletbo, groeck, srinivas.pandruvada, andy.shevchenko,
	gwendal, Alexandru Ardelean

This is a v2 for [1]:
  https://lore.kernel.org/linux-iio/20200925083743.46469-1-alexandru.ardelean@analog.com/

It also includes a at91-sama5d2_adc cleanup patch in this series:
  https://lore.kernel.org/linux-iio/20200924102902.136169-1-alexandru.ardelean@analog.com/
This patch is required, in order to make the removal of
iio_buffer_set_attrs() a bit cleaner in the at91-sama5d2_adc driver.

Following the discussion from [1], this patchset implements the
following:

Changelog v1 -> v2:
* rename '{devm_}iio_triggered_buffer_setup()' -> 
         '{devm_}iio_triggered_buffer_setup_ext()'
  - wrap with macros the new ext functions to preserve backwards
    compatibility
  - add a new parameter to the ext functions, which are the
    buffer->attrs
* split into separate patches the removal [from each driver] of
  iio_buffer_set_attrs() and the switch to a
  {devm_}iio_triggered_buffer_setup_ext variant
* add patch to remove iio_buffer_set_attrs() from DMAEngine IIO buffer
* remove the iio_buffer_set_attrs() helper in a final/separate patch
* add 'at91-sama5d2_adc: merge buffer & trigger' patch in this series,
  so that the removal of iio_buffer_set_attrs() is easier to view

Alexandru Ardelean (9):
  iio: buffer: dmaengine: unwrap the use of iio_buffer_set_attrs()
  iio: adc: at91-sama5d2_adc: merge buffer & trigger init into a
    function
  iio: triggered-buffer: add {devm_}iio_triggered_buffer_setup_ext
    variants
  iio: accel: adxl372: use devm_iio_triggered_buffer_setup_ext()
  iio: accel: bmc150: use iio_triggered_buffer_setup_ext()
  iio: adc: at91-sama5d2_adc: use devm_iio_triggered_buffer_setup_ext()
  iio: cros_ec: use devm_iio_triggered_buffer_setup_ext()
  iio: hid-sensors: use iio_triggered_buffer_setup_ext()
  iio: buffer: remove iio_buffer_set_attrs() helper

 drivers/iio/accel/adxl372.c                   | 11 ++-
 drivers/iio/accel/bmc150-accel-core.c         | 25 +++---
 drivers/iio/adc/at91-sama5d2_adc.c            | 82 +++++++++----------
 .../buffer/industrialio-buffer-dmaengine.c    |  3 +-
 .../buffer/industrialio-triggered-buffer.c    | 31 ++++---
 .../cros_ec_sensors/cros_ec_sensors_core.c    | 15 ++--
 .../common/hid-sensors/hid-sensor-trigger.c   | 22 ++---
 drivers/iio/industrialio-buffer.c             | 12 ---
 include/linux/iio/buffer.h                    |  3 -
 include/linux/iio/triggered_buffer.h          | 23 ++++--
 10 files changed, 113 insertions(+), 114 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-09-29  8:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29  7:08 [PATCH v2 0/9] iio: remove iio_buffer_set_attrs() and assign buffer attrs during alloc Alexandru Ardelean
2020-09-29  7:09 ` [PATCH v2 1/9] iio: buffer: dmaengine: unwrap the use of iio_buffer_set_attrs() Alexandru Ardelean
2020-09-29  7:48   ` Andy Shevchenko
2020-09-29  8:13     ` Alexandru Ardelean
2020-09-29  7:09 ` [PATCH v2 2/9] iio: adc: at91-sama5d2_adc: merge buffer & trigger init into a function Alexandru Ardelean
2020-09-29  7:09 ` [PATCH v2 3/9] iio: triggered-buffer: add {devm_}iio_triggered_buffer_setup_ext variants Alexandru Ardelean
2020-09-29  7:09 ` [PATCH v2 4/9] iio: accel: adxl372: use devm_iio_triggered_buffer_setup_ext() Alexandru Ardelean
2020-09-29  7:09 ` [PATCH v2 5/9] iio: accel: bmc150: use iio_triggered_buffer_setup_ext() Alexandru Ardelean
2020-09-29  7:09 ` [PATCH v2 6/9] iio: adc: at91-sama5d2_adc: use devm_iio_triggered_buffer_setup_ext() Alexandru Ardelean
2020-09-29  7:09 ` [PATCH v2 7/9] iio: cros_ec: " Alexandru Ardelean
2020-09-29  7:09 ` [PATCH v2 8/9] iio: hid-sensors: use iio_triggered_buffer_setup_ext() Alexandru Ardelean
2020-09-29  7:09 ` [PATCH v2 9/9] iio: buffer: remove iio_buffer_set_attrs() helper Alexandru Ardelean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).