android_kernel_samsung_a7y1.../drivers/iio
Lars Möllendorf 32f4e64a55 iio: buffer: align the size of scan bytes to size of the largest element
commit 883f616530692d81cb70f8a32d85c0d2afc05f69 upstream.

Previous versions of `iio_compute_scan_bytes` only aligned each element
to its own length (i.e. its own natural alignment). Because multiple
consecutive sets of scan elements are buffered this does not work in
case the computed scan bytes do not align with the natural alignment of
the first scan element in the set.

This commit fixes this by aligning the scan bytes to the natural
alignment of the largest scan element in the set.

Fixes: 959d2952d124 ("staging:iio: make iio_sw_buffer_preenable much more general.")
Signed-off-by: Lars Möllendorf <lars.moellendorf@plating.de>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:45:04 +02:00
..
accel iio: fix center temperature of bmc150-accel-core 2020-04-07 09:27:33 +02:00
adc iio: adc: max1027: Reset the device at probe time 2020-04-07 13:20:44 +02:00
amplifiers A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
buffer A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chemical A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
common iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data 2020-04-06 18:19:39 +02:00
dac iio: dac: ad5380: fix incorrect assignment to val 2020-04-07 13:43:11 +02:00
frequency A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gyro iio/gyro/bmg160: Use millidegrees for temperature scale 2020-04-06 15:49:17 +02:00
humidity iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting 2020-04-07 13:06:33 +02:00
imu iio: imu: adis16480: assign bias value only if operation succeeded 2020-04-07 13:37:00 +02:00
light iio: light: bh1750: Resolve compiler warning and make code more readable 2020-04-07 13:20:03 +02:00
magnetometer A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
orientation A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
potentiometer A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pressure A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proximity A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
temperature A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trigger A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iio_core_trigger.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iio_core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-buffer.c iio: buffer: align the size of scan bytes to size of the largest element 2020-04-07 13:45:04 +02:00
industrialio-core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-trigger.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-triggered-event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inkern.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30