iio: light: ltr390: Suspend and Resume support
authorAbhash Jha <abhashkumarjha123@gmail.com>
Sat, 14 Sep 2024 18:12:44 +0000 (23:42 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 5 Oct 2024 11:09:14 +0000 (12:09 +0100)
commit288ce72fb5fce63792d90b74bee4379cc2938ff9
treeb5654b5c54ee675c22c92c27cef001d72a2728c7
parentbd7057bb94887f475f1cbedbc77cede274be7547
iio: light: ltr390: Suspend and Resume support

Added support for suspend and resume PM ops.
We suspend the sensor by clearing the ALS_UVS_EN bit in the MAIN CONTROL
register. And we resume it by setting that bit.

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