Skip to content

iio: mark scan_timestamp as __private

Vasileios Amoiridis linux-iio lkml 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 8 repliesApplied
  2. v1 RFC6 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Droped patches 1,2.
- DLN2-ADC: zero full struct instead of just the padding
- MAX1363: add the data buffer in the iio_priv()
- SSP_IIO: calculate always the timestamp
- iio_push_to_buffers_with_timestamp(): mark the access of the indio_dev->scan_timestamp as ACCESS_PRIVATE()

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4iio: adc: dln2-adc: zero full struct instead of just the paddingdrivers/iio/adc/dln2-adc.c+2 -191 reply
2/4iio: adc: max1363: make use of iio_is_soft_ts_enabled()drivers/iio/adc/max1363.c+9 -211 reply
3/4iio: common: ssp_sensors: drop conditional optimization for simplicitydrivers/iio/common/ssp_sensors/ssp_iio.c+3 -65 replies
4/4iio: core: mark scan_timestamp as __privatedrivers/iio/industrialio-buffer.c include/linux/iio/buffer.h include/linux/iio/iio.h+3 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] iio: mark scan_timestamp as __private

Changes in v2:

- Droped patches 1,2.
- DLN2-ADC: zero full struct instead of just the padding
- MAX1363: add the data buffer in the iio_priv()
- SSP_IIO: calculate always the timestamp
- iio_push_to_buffers_with_timestamp(): mark the access of the indio_dev->scan_timestamp as ACCESS_PRIVATE()

---
v1: https://lore.kernel.org/linux-iio/[email protected]/

The scan_timestamp value of the struct iio_dev, even though is an internal variable, it is being used in some drivers. To avoid any unwanted overwrites of this value, create a getter and when all the drivers are converted, mark the variable as __private.

The patch is an RFC because the added value might not be considered high enough by someone to be implemented and/or it might need to be done in a different way since it touches multiple drivers. Vasileios Amoiridis (4):
iio: adc: dln2-adc: zero full struct instead of just the padding
iio: adc: max1363: make use of iio_is_soft_ts_enabled()
iio: common: ssp_sensors: drop conditional optimization for simplicity
iio: core: mark scan_timestamp as __private

 drivers/iio/adc/dln2-adc.c               | 21 ++---------------
 drivers/iio/adc/max1363.c                | 30 +++++++-----------------
 drivers/iio/common/ssp_sensors/ssp_iio.c |  9 +++----
 drivers/iio/industrialio-buffer.c        |  2 +-
 include/linux/iio/buffer.h               |  2 +-
 include/linux/iio/iio.h                  |  2 +-
 6 files changed, 17 insertions(+), 49 deletions(-)

base-commit: a3fb9f5202c3de0ca84848a475f59a0e0584d9fc

Signature · 1 line
2.43.0