]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: ltr390: Add configurable gain and resolution
authorAbhash Jha <abhashkumarjha123@gmail.com>
Wed, 31 Jul 2024 06:37:03 +0000 (12:07 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 14:01:11 +0000 (15:01 +0100)
commit13fad2607dad14afd0633d9c869499f6e7c998bd
treeedd38b33f97fb4a3d1fcc3cad227a9ca7078d0d8
parentd6b133a664fa7ea01a3a5f2849a6ac205d3c8810
iio: light: ltr390: Add configurable gain and resolution

Add support for configuring and reading the gain and resolution
(integration time). Also provide the available values for gain and
resoltion respectively via `read_avail` callback.

Signed-off-by: Abhash Jha <abhashkumarjha123@gmail.com>
Link: https://patch.msgid.link/20240731063706.25412-2-abhashkumarjha123@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/ltr390.c