]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: veml6030: add support for a regulator
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Tue, 1 Oct 2024 20:21:17 +0000 (22:21 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Oct 2024 14:09:35 +0000 (15:09 +0100)
commitc8823425af28873bf61633ee37adaa40c1615752
tree2908a91c94cc0bdc3a91aa260e25289687c1d6dc
parent7a1af0de1f042af2a7463694866516109f54ffc2
iio: light: veml6030: add support for a regulator

Use the device managed function from the regulator API to get and enable
a regulator powering the device.

Use "vdd" as the ID to account for the provided name in the datasheet.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241001-veml6035-v3-4-d789f6ff147c@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/veml6030.c