mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
hid-input/battery: remove battery_val
hidinput_get_battery_property() now directly polls the device for the current battery strength, so there's no need for battery_val, or the code to set it on the input event path. Signed-off-by: Jeremy Fitzhardinge <[email protected]>
This commit is contained in:
parent
b3ca3839f3
commit
ce63920b39
2 changed files with 0 additions and 9 deletions
|
|
@ -917,14 +917,6 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
|
|||
|
||||
input = field->hidinput->input;
|
||||
|
||||
#ifdef CONFIG_HID_BATTERY_STRENGTH
|
||||
if (usage->hid == HID_DC_BATTERYSTRENGTH) {
|
||||
hid->battery_val = value;
|
||||
hid_dbg(hid, "battery value is %d (range %d-%d)\n",
|
||||
value, hid->battery_min, hid->battery_max);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (!usage->type)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue