diff options
| author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2026-02-27 14:43:05 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-03-01 11:20:10 +0000 |
| commit | bd66aa1c8b8cabf459064a46d3430a5ec5138418 (patch) | |
| tree | b80c484128c19469b3b17ba815479bb0c1d44aa1 /tools/perf/scripts/python | |
| parent | 0206dd36418c104c0b3dea4ed7047e21eccb30b0 (diff) | |
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: df36de13677a ("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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
