1
0
forked from drath/libratbag

hidpp20: don't set the device's num_leds, it's overwritten later

This should all be handled by libratbag, not the driver.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-09-29 11:06:13 +10:00
committed by Benjamin Tissoires
parent 670720b40f
commit ec442b960d

View File

@@ -997,7 +997,6 @@ hidpp20drv_init_feature(struct ratbag_device *device, uint16_t feature)
return 0;
ratbag_device_set_capability(device, RATBAG_DEVICE_CAP_LED);
device->num_leds = drv_data->num_leds;
break;
}
case HIDPP_PAGE_ONBOARD_PROFILES: {