+46
−24
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Refactor _set_power_state(), _resume() and _suspend(). Enable measurement only when needed, not in _init(). System can suspend during measurement and measurement is continued on resume. Pm turns off measurement when both ps and als measurements are disabled for 2 seconds. During off-time the power save is 20-500mA, typically 180mA. Signed-off-by:Mikko Koivunen <mikko.koivunen@fi.rohmeurope.com> Acked-by:
Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>