From ec442b960d6ef1274dd64a427c4212fddc4aed77 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 29 Sep 2017 11:06:13 +1000 Subject: [PATCH] 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 --- src/driver-hidpp20.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/driver-hidpp20.c b/src/driver-hidpp20.c index 12d76bec..1dd7c79d 100644 --- a/src/driver-hidpp20.c +++ b/src/driver-hidpp20.c @@ -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: {