power_supply: Update power_supply_is_watt_property
authorRhyland Klein <rklein@nvidia.com>
Tue, 1 Mar 2011 00:55:31 +0000 (16:55 -0800)
committerAnton 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

index 20f23fe..204c18d 100644 (file)
@@ -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;