This reverts commit
3847d15b41ce ("HID: playstation: fix unused variable
in ps_battery_get_property.")
There is currently an ongoing discussion on linux-leds LKML,
and so to give us more room, we need to revert those related
LEDs patches from linux-next.
To have a cleaner merge with the new version, we also revert
all patches on top of the LED ones.
This is not a big deal, they are still not pushed to Linus.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
uint8_t battery_capacity;
int battery_status;
unsigned long flags;
- int ret = 0;
+ int ret;
spin_lock_irqsave(&dev->lock, flags);
battery_capacity = dev->battery_capacity;
break;
}
- return ret;
+ return 0;
}
static int ps_device_register_battery(struct ps_device *dev)