]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: gts-helper: export iio_gts_get_total_gain()
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Mon, 27 Jan 2025 19:30:22 +0000 (20:30 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Feb 2025 15:16:29 +0000 (15:16 +0000)
commitdbd2e08ff09fd6bd51215b44474899cc1b7b7a16
tree7d5c3d0de32a3470f32d02dff52c1cef5a743cc3
parentec08c3954689ab21fa15e0c0cdc6936480c237b7
iio: gts-helper: export iio_gts_get_total_gain()

Export this function in preparation for the fix in veml6030.c, where the
total gain can be used to ease the calculation of the processed value of
the IIO_LIGHT channel compared to acquiring the scale in NANO.

Suggested-by: Matti Vaittinen <mazziesaccount@gmail.com>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/20250127-veml6030-scale-v3-1-4f32ba03df94@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-gts-helper.c
include/linux/iio/iio-gts-helper.h