]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: inkern: fix channel read regression
authorJohan Hovold <johan+linaro@kernel.org>
Thu, 30 May 2024 07:44:16 +0000 (09:44 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 3 Jun 2024 19:29:31 +0000 (20:29 +0100)
commit78f0dfa64cbd05f381849377a32e0a2f1afe9215
tree72efa265920a4dad2aad7bb090e13ccc65836920
parent8844ed0a6e063acf7173b231021b2d301e31ded9
iio: inkern: fix channel read regression

A recent "cleanup" broke IIO channel read outs and thereby thermal
mitigation on the Lenovo ThinkPad X13s by returning zero instead of the
expected IIO value type in iio_read_channel_processed_scale():

thermal thermal_zone12: failed to read out thermal zone (-22)

Fixes: 3092bde731ca ("iio: inkern: move to the cleanup.h magic")
Cc: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240530074416.13697-1-johan+linaro@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/inkern.c