]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: temp: maxim_thermocouple: Switch to sparse friendly iio_device_claim/release_dir...
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 31 Mar 2025 12:13:14 +0000 (13:13 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:10:01 +0000 (19:10 +0100)
commit3332487099013f48108080f9c8ffeaddbef3724e
tree368a3fdac0d5255996522f9e90316c90d0e0c0cd
parent0ed4424478d36c8301dd4fbc18a49eafb5e67569
iio: temp: maxim_thermocouple: 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.

Tidy up a few direct returns whilst here.

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