]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: accel: mma8452: Factor out guts of write_raw() to simplify locking
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 Feb 2025 14:01:29 +0000 (14:01 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Mar 2025 13:17:48 +0000 (13:17 +0000)
commitcce9172f3d40b681f7d4bc3b867e01b3e8e85efb
treefb198080f6d8116350708e824356fb2bc4ec9912
parentdf330c808182a8beab5d0f84a6cbc9cff76c61fc
iio: accel: mma8452: Factor out guts of write_raw() to simplify locking

Factoring out those parts of write_raw() in which direct mode is held
allows for direct returns on errors, simplifying the code.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250217140135.896574-3-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/mma8452.c