projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff28fce
)
power_supply: Update power_supply_is_watt_property
author
Rhyland Klein
<rklein@nvidia.com>
Tue, 1 Mar 2011 00:55:31 +0000
(16:55 -0800)
committer
Anton Vorontsov
<cbouatmailru@gmail.com>
Tue, 1 Mar 2011 19:27:26 +0000
(22:27 +0300)
Update the power_supply_is_watt_property function to include POWER_NOW.
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
include/linux/power_supply.h
patch
|
blob
|
history
diff --git
a/include/linux/power_supply.h
b/include/linux/power_supply.h
index
20f23fe
..
204c18d
100644
(file)
--- a/
include/linux/power_supply.h
+++ b/
include/linux/power_supply.h
@@
-251,6
+251,7
@@
static inline bool power_supply_is_watt_property(enum power_supply_property psp)
case POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN:
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
case POWER_SUPPLY_PROP_VOLTAGE_AVG:
+ case POWER_SUPPLY_PROP_POWER_NOW:
return 1;
default:
break;