diff options
| author | 2025-02-17 14:01:28 +0000 | |
|---|---|---|
| committer | 2025-03-04 13:17:48 +0000 | |
| commit | df330c808182a8beab5d0f84a6cbc9cff76c61fc (patch) | |
| tree | 8bd1cb084ab31c9afcc00544b4ea6d448c9e8671 /scripts/Makefile.thinlto | |
| parent | docs: iio: add documentation for adis16550 driver (diff) | |
iio: accel: mma8452: Ensure error return on failure to matching oversampling ratio
If a match was not found, then the write_raw() callback would return
the odr index, not an error. Return -EINVAL if this occurs.
To avoid similar issues in future, introduce j, a new indexing variable
rather than using ret for this purpose.
Fixes: 79de2ee469aa ("iio: accel: mma8452: claim direct mode during write raw")
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250217140135.896574-2-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
