]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: dln2-adc: zero full struct instead of just the padding
authorVasileios Amoiridis <vassilisamir@gmail.com>
Sat, 14 Dec 2024 19:14:18 +0000 (20:14 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:13 +0000 (14:28 +0000)
commit6fcabe62de98bdd7a20c2b46992e90caf8fdd28a
tree6e75e1c07adfd5d5377cdd7bceb8523430f91bd8
parent88ff5304f63035e69e4d7571d67dfeee78511e34
iio: adc: dln2-adc: zero full struct instead of just the padding

Drop a minor optimization of zeroing the padding between data and
timestamp and zero the whole structure. This is done in favor of
simpler code, and in order to drop the usage of the internal private
variable "scan_timestamp" of the struct iio_dev.

Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20241214191421.94172-2-vassilisamir@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/dln2-adc.c