diff options
author | Dima Zavin <dima@android.com> | 2011-08-25 15:28:59 -0700 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2011-08-25 15:47:06 -0700 |
commit | ba91b173ad2c548ddb86a59d3996366d211d7694 (patch) | |
tree | 318e0796edd685f95dbc065aa1da279d1b971068 /drivers/hwmon/adm1275.c | |
parent | e0af0b0ad22b1ad1c3837c0224498c18cebe29fc (diff) | |
download | kernel_samsung_tuna-ba91b173ad2c548ddb86a59d3996366d211d7694.zip kernel_samsung_tuna-ba91b173ad2c548ddb86a59d3996366d211d7694.tar.gz kernel_samsung_tuna-ba91b173ad2c548ddb86a59d3996366d211d7694.tar.bz2 |
power: max17040: add support for scaling the reported capacity
The battery capacity reported may not always be representative of
how much charge is actually remaining. When the battery is almost empty,
the output voltage may dip and go below the threshold for safe operation.
The "almost empty" watermark will be different for different designs so it
needs to be passed through platform data.
The battery reported capacity is thus scaled from [min,~100] to [0,100].
Change-Id: I257c67bcc9b47d833f0bcea9831f6c4a4486a58b
Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'drivers/hwmon/adm1275.c')
0 files changed, 0 insertions, 0 deletions