mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
hidpp20: fix .type parsing for sw_leds
struct hidpp20_led_sw_ctrl_led_info holds a u8 for the .type field. Attempting to convert a value which is already a u8 ends up setting 0 and thus discarding the type information. Fix by removing the extra step. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -552,7 +552,6 @@ int hidpp20_led_sw_control_get_led_info(struct hidpp20_device* device,
|
||||
return -ENOENT;
|
||||
|
||||
params = (struct hidpp20_led_sw_ctrl_led_info*) msg.msg.parameters;
|
||||
params->type = hidpp_be_u16_to_cpu(params->type);
|
||||
params->caps = hidpp_be_u16_to_cpu(params->caps);
|
||||
|
||||
*info = *params;
|
||||
|
||||
Reference in New Issue
Block a user