]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 20f23fef63cce918eeed46b40e767f6f4bb35881..204c18dfdc9e839a378cfd4200342784c22be5b7 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;