power_supply: Update power_supply_is_watt_property
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>
This commit is contained in:
parent
ff28fcef1b
commit
35c9d26766
1 changed files with 1 additions and 0 deletions
|
@ -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_MIN_DESIGN:
|
||||||
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
|
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
|
||||||
case POWER_SUPPLY_PROP_VOLTAGE_AVG:
|
case POWER_SUPPLY_PROP_VOLTAGE_AVG:
|
||||||
|
case POWER_SUPPLY_PROP_POWER_NOW:
|
||||||
return 1;
|
return 1;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue