diff options
| author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2025-01-27 22:30:22 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-02-08 18:16:29 +0300 |
| commit | dbd2e08ff09fd6bd51215b44474899cc1b7b7a16 (patch) | |
| tree | 7d5c3d0de32a3470f32d02dff52c1cef5a743cc3 /include | |
| parent | ec08c3954689ab21fa15e0c0cdc6936480c237b7 (diff) | |
| download | linux-dbd2e08ff09fd6bd51215b44474899cc1b7b7a16.tar.xz | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/iio/iio-gts-helper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iio/iio-gts-helper.h b/include/linux/iio/iio-gts-helper.h index e5de7a124bad..66f830ab9b49 100644 --- a/include/linux/iio/iio-gts-helper.h +++ b/include/linux/iio/iio-gts-helper.h @@ -208,5 +208,6 @@ int iio_gts_all_avail_scales(struct iio_gts *gts, const int **vals, int *type, int *length); int iio_gts_avail_scales_for_time(struct iio_gts *gts, int time, const int **vals, int *type, int *length); +int iio_gts_get_total_gain(struct iio_gts *gts, int gain, int time); #endif |
