Re: [PATCH 4/4] HID: input: map battery capacity (00850065)

From: Pochang Chen
Date: Sat Mar 27 2021 - 10:15:14 EST


On Sat, Mar 27, 2021 at 9:06 PM John Chen <johnchen902@xxxxxxxxx> wrote:
> + hidinput_setup_battery(device, HID_INPUT_REPORT, field);
> + usage->type = EV_PWR;
> + device->battery_min = 0;
> + device->battery_max = 100;

I just realized that this won't compile without CONFIG_HID_BATTERY_STRENGTH.