iio: mark scan_timestamp as __private
Status from this message: Applied.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 8 repliesApplied
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | iio: adc: dln2-adc: zero full struct instead of just the paddingdrivers/ | +2 | 1 reply | |
| 2/4 | iio: adc: max1363: make use of iio_is_soft_ts_enabled()drivers/ | +9 | 1 reply | |
| 3/4 | iio: common: ssp_sensors: drop conditional optimization for simplicitydrivers/ | +3 | 5 replies | |
| 4/4 | iio: core: mark scan_timestamp as __privatedrivers/ include/ include/ | +3 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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