Files
linux/drivers/iio/accel
Antoniu Miclaus bd66aa1c8b iio: accel: adxl380: fix FIFO watermark bit 8 always written as 0
FIELD_PREP(BIT(0), fifo_samples & BIT(8)) produces either 0 or 256,
and since FIELD_PREP masks to bit 0, 256 & 1 evaluates to 0. Use !!
to convert the result to a proper 0-or-1 value.

Fixes: df36de1367 ("iio: accel: add ADXL380 driver")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2026-03-01 11:20:10 +00:00
..
2022-02-21 19:33:06 +00:00
2026-01-29 16:10:44 +00:00
2025-04-22 19:10:04 +01:00
2025-04-22 19:10:04 +01:00
2025-10-19 11:59:20 +01:00