projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wireless: rt2x00: add new rt2800usb device
[cascardo/linux.git]
/
drivers
/
power
/
gpio-charger.c
diff --git
a/drivers/power/gpio-charger.c
b/drivers/power/gpio-charger.c
index
a0024b2
..
7536933
100644
(file)
--- a/
drivers/power/gpio-charger.c
+++ b/
drivers/power/gpio-charger.c
@@
-55,7
+55,7
@@
static int gpio_charger_get_property(struct power_supply *psy,
switch (psp) {
case POWER_SUPPLY_PROP_ONLINE:
- val->intval = gpio_get_value_cansleep(pdata->gpio);
+ val->intval =
!!
gpio_get_value_cansleep(pdata->gpio);
val->intval ^= pdata->gpio_active_low;
break;
default: