Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 93090ab4 authored by David Keitel's avatar David Keitel
Browse files

power: qpnp-fg: add SRAM OCV and temperature readings



Add code to periodically update the readings of the following
power supply properties:

  * POWER_SUPPLY_PROP_VOLTAGE_NOW
  * POWER_SUPPLY_PROP_VOLTAGE_OCV
  * POWER_SUPPLY_PROP_TEMP
  * POWER_SUPPLY_PROP_CURRENT_NOW

The properties are updated in 30 second increments, unless
a fg_power_get_property happens prior, then a pending work
queue is canceled and the work is scheduled within 1 second
of the request.

Note that if a client abuses the userspace the work sync
will not be able to be rescheduled and thus may lead
to stale cached values.

Change-Id: I3b13c91253f67d6545a2119764098a44a86338bf
Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
parent 286b0d28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment