iio: proximity: pulsed-light: Switch to sparse friendly iio_device_claim/release_direct()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 31 Mar 2025 12:13:12 +0000 (13:13 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:10:01 +0000 (19:10 +0100)
commit3e3f57659b3d1affc21c8315164fc60e3d2ed7c5
tree234eb73d85affc462c0ae1bbc233a5d74d03c368
parent9dc7ed3bfe437b3a9fc5399fbe594a4b054eeeec
iio: proximity: pulsed-light: Switch to sparse friendly iio_device_claim/release_direct()

These new functions allow sparse to find failures to release
direct mode reducing chances of bugs over the claim_direct_mode()
functions that are deprecated.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Link: https://patch.msgid.link/20250331121317.1694135-33-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c