linux/drivers/iio/adc
Jonathan Cameron 7765dfaa22 iio: adc: vf610: Fix buffer alignment in iio_push_to_buffers_with_timestamp()
To make code more readable, use a structure to express the channel
layout and ensure the timestamp is 8 byte aligned.

Found during an audit of all calls of uses of
iio_push_to_buffers_with_timestamp()

Fixes: 0010d6b444 ("iio: adc: vf610: Add IIO buffer support for Vybrid ADC")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
Cc: Sanchayan Maity <maitysanchayan@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210501170121.512209-10-jic23@kernel.org
2021-05-17 13:54:29 +01:00
..
ab8500-gpadc.c First set of IIO and counter fixes for the 5.12 cycle 2021-03-15 16:34:39 +01:00
ad799x.c iio:adc: Drop false comment about lack of timestamp control 2021-04-07 08:36:38 +01:00
ad7091r5.c
ad7091r-base.c
ad7091r-base.h
ad7124.c iio: adc: ad7124: allow more than 8 channels 2021-03-25 19:13:50 +00:00
ad7192.c
ad7266.c
ad7291.c iio: adc: ad7291: convert to device tree 2020-09-29 17:27:05 +01:00
ad7292.c iio: adc: ad7292: Modify the bool initialization assignment 2021-03-25 19:13:52 +00:00
ad7298.c iio: adc: ad7298: Enable on Intel Galileo Gen 1 2021-05-17 13:49:05 +01:00
ad7476.c iio:adc:ad7476: Handle the different regulators used by various parts. 2021-05-17 13:49:08 +01:00
ad7606_par.c
ad7606_spi.c
ad7606.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
ad7606.h
ad7766.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
ad7768-1.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
ad7780.c
ad7791.c
ad7793.c
ad7887.c iio:adc: Drop false comment about lack of timestamp control 2021-04-07 08:36:38 +01:00
ad7923.c iio:adc: Drop false comment about lack of timestamp control 2021-04-07 08:36:38 +01:00
ad7949.c iio: adc: ad7949: fix wrong ADC result due to incorrect bit mask 2021-02-12 19:04:32 +00:00
ad9467.c iio: adc: ad9467: add support for AD9265 high-speed ADC 2020-09-29 17:27:07 +01:00
ad_sigma_delta.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
adi-axi-adc.c iio: adc: adi-axi-adc: simplify devm_adi_axi_adc_conv_register() 2021-05-17 13:49:06 +01:00
aspeed_adc.c
at91_adc.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
at91-sama5d2_adc.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
axp20x_adc.c
axp288_adc.c
bcm_iproc_adc.c
berlin2-adc.c
cc10001_adc.c
cpcap-adc.c iio: adc: cpcap-adc: kernel-doc fix - that should be _ in structure name 2021-03-25 19:13:51 +00:00
da9150-gpadc.c
dln2-adc.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
envelope-detector.c
ep93xx_adc.c iio: ep93xx: Remove redundant error printing in ep93xx_adc_probe() 2021-05-17 13:54:24 +01:00
exynos_adc.c iio: adc: exynos: drop unneeded variable assignment 2021-05-17 13:49:04 +01:00
fsl-imx25-gcq.c
hi8435.c
hx711.c
imx7d_adc.c
ina2xx-adc.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
ingenic-adc.c First set of new device support, features and cleanups for IIO in the 5.11 cycle 2020-11-24 08:30:08 +01:00
intel_mrfld_adc.c
Kconfig iio: adc: add ADC driver for the TI TSC2046 controller 2021-05-17 13:49:11 +01:00
lp8788_adc.c
lpc18xx_adc.c
lpc32xx_adc.c
ltc2471.c
ltc2485.c
ltc2496.c
ltc2497-core.c
ltc2497.c
ltc2497.h
Makefile iio: adc: add ADC driver for the TI TSC2046 controller 2021-05-17 13:49:11 +01:00
max1027.c iio: fix devm_iio_trigger_alloc with parent.cocci 2021-03-25 19:13:50 +00:00
max1118.c
max1241.c
max1363.c
max9611.c
max11100.c
mcp320x.c
mcp3422.c
mcp3911.c
men_z188_adc.c
meson_saradc.c iio: remove unneeded break 2020-11-01 15:31:56 +00:00
mp2629_adc.c iio: adc: mp2629: Drop duplicate setting iio_dev.dev.parent 2021-05-17 13:49:12 +01:00
mt6360-adc.c iio: adc: mt6360: Drop duplicate setting of iio_dev.dev.parent 2021-05-17 13:49:12 +01:00
mt6577_auxadc.c iio: adc: mediatek: fix unset field 2020-11-01 15:22:46 +00:00
mxs-lradc-adc.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
nau7802.c iio:adc:nau7802: Use IRQF_NO_AUTOEN instead of request then disable 2021-04-07 08:36:39 +01:00
npcm_adc.c iio: adc: npcm_adc: Replace indio_dev->mlock with own device lock 2021-03-25 19:13:49 +00:00
palmas_gpadc.c iio: adc: palmas_gpadc: Replace indio_dev->mlock with own device lock 2021-03-25 19:13:49 +00:00
qcom-pm8xxx-xoadc.c iio: adc: move qcom-vadc-common.h to include dir 2021-01-16 18:20:56 +00:00
qcom-spmi-adc5.c iio: adc: qcom-spmi-adc5: use of_device_get_match_data 2021-01-16 18:23:36 +00:00
qcom-spmi-iadc.c
qcom-spmi-vadc.c First set of IIO and counter fixes for the 5.12 cycle 2021-03-15 16:34:39 +01:00
qcom-vadc-common.c thermal: qcom: add support for adc-tm5 PMIC thermal monitor 2021-02-15 21:28:53 +01:00
rcar-gyroadc.c iio: adc: rcar-gyroadc: Use pm_runtime_resume_and_get() and check in probe() 2021-05-17 13:54:26 +01:00
rn5t618-adc.c
rockchip_saradc.c iio: adc: rockchip_saradc: fix missing clk_disable_unprepare() on error in rockchip_saradc_resume 2020-12-03 19:40:31 +00:00
sc27xx_adc.c iio: adc: Add missing MODULE_DEVICE_TABLE 2021-05-17 13:54:24 +01:00
sd_adc_modulator.c
spear_adc.c iio: adc: spear_adc: Replace indio_dev->mlock with own device lock 2021-03-25 19:13:49 +00:00
stm32-adc-core.c iio: adc: stm32-adc: Remove redundant null check before clk_prepare_enable/clk_disable_unprepare 2021-01-09 21:52:46 +00:00
stm32-adc-core.h
stm32-adc.c iio: adc: stm32-adc: Use pm_runtime_resume_and_get() to replace open coding. 2021-05-17 13:54:26 +01:00
stm32-dfsdm-adc.c iio: adc: stm32-dfsdm: drop __func__ while using Dynamic debug 2021-04-07 08:36:38 +01:00
stm32-dfsdm-core.c iio: adc: stm32-dfsdm: Use pm_runtime_resume_and_get() to replace open coding. 2021-05-17 13:54:26 +01:00
stm32-dfsdm.h ASoC: stm32: dfsdm: add actual resolution trace 2020-10-08 20:44:41 +01:00
stmpe-adc.c
stx104.c
sun4i-gpadc-iio.c iio:adc:sun4i-gpadc: Use new IRQF_NO_AUTOEN flag instead of request then disable 2021-04-07 08:36:39 +01:00
ti_am335x_adc.c iio: make use of devm_iio_kfifo_buffer_setup() helper 2021-03-11 20:47:01 +00:00
ti-adc081c.c
ti-adc084s021.c iio: adc: ti-adc084s021: kernel-doc fixes, missing function names 2021-03-25 19:13:51 +00:00
ti-adc108s102.c
ti-adc128s052.c
ti-adc161s626.c
ti-adc0832.c
ti-adc12138.c iio:adc:ti-adc12138 Fix alignment issue with timestamp 2020-09-21 20:01:51 +01:00
ti-ads124s08.c iio:adc:ti-ads124s08: Fix alignment and data leak issues. 2020-12-03 19:40:29 +00:00
ti-ads131e08.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
ti-ads1015.c iio: adc: ti-ads1015: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-05-17 13:54:28 +01:00
ti-ads7950.c
ti-ads8344.c
ti-ads8688.c
ti-tlc4541.c
ti-tsc2046.c iio: adc: add ADC driver for the TI TSC2046 controller 2021-05-17 13:49:11 +01:00
twl4030-madc.c
twl6030-gpadc.c
vf610_adc.c iio: adc: vf610: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-05-17 13:54:29 +01:00
viperboard_adc.c
xilinx-xadc-core.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
xilinx-xadc-events.c iio: xilinx-xadc: Add basic support for Ultrascale System Monitor 2021-01-09 14:25:24 +00:00
xilinx-xadc.h iio: xilinx-xadc: Add basic support for Ultrascale System Monitor 2021-01-09 14:25:24 +00:00