diff options
author | Akshay Jindal <akshayaj.lkd@gmail.com> | 2025-09-10 01:16:46 +0530 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-09-13 13:18:16 +0100 |
commit | abe629ebdabea4827f7c8f1c8fe79caf1fc4deb9 (patch) | |
tree | 031be2e2ac0e5bc3db08a6b14c0a976466c8c611 /drivers/infiniband/hw/ionic/ionic_datapath.c | |
parent | 661facba437e37c1685606825b9fd59be3f78771 (diff) |
iio: light: ltr390: Implement runtime PM support
Implement runtime power management for the LTR390 sensor. The device
autosuspends after 1s of idle time, reducing current consumption from
100 µA in active mode to 1 µA in standby mode as per the datasheet.
Ensure that interrupts continue to be delivered with runtime PM.
Since the LTR390 cannot be used as a wakeup source during runtime
suspend, therefore increment the runtime PM refcount when enabling
events and decrement it when disabling events or powering down.
This prevents event loss while still allowing power savings when IRQs
are unused.
Signed-off-by: Akshay Jindal <akshayaj.lkd@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/infiniband/hw/ionic/ionic_datapath.c')
0 files changed, 0 insertions, 0 deletions