]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: accel: adxl345: cleanup regmap return values
authorLothar Rubusch <l.rubusch@gmail.com>
Thu, 13 Mar 2025 16:50:38 +0000 (16:50 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:51 +0000 (19:09 +0100)
commit802ede1a9b5a78ffe438fb12765b8ec5efbed923
tree2b6971846d39a8b52ad5115505eff7205021a03f
parent77d48f5e4a603efc22785a03800fd2a127b51be4
iio: accel: adxl345: cleanup regmap return values

Regmap return values sometimes are checked being less than zero
to trigger error handling. Sometimes this is checked for being not
zero. Unify the situation and check for not being zero.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
Link: https://patch.msgid.link/20250313165049.48305-4-l.rubusch@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345_core.c