hidpp20: fix reading cluster info in the 8071 feature

TBH I don't know why I wrote the original code in the first place, it
clearly doesn't follow the spec.

Signed-off-by: Filipe Laíns <lains@archlinux.org>
This commit is contained in:
Filipe Laíns
2019-09-09 17:08:39 +01:00
committed by Peter Hutterer
parent cb0b458824
commit a4d19efb93

View File

@@ -1082,8 +1082,8 @@ hidpp20_rgb_effects_get_cluster_info(struct hidpp20_device *device,
info->effect_index = msg.msg.parameters[1];
info->location = get_unaligned_be_u16(&msg.msg.parameters[2]);
info->num_effects = get_unaligned_be_u16(&msg.msg.parameters[4]);
info->persistency_caps = get_unaligned_be_u16(&msg.msg.parameters[6]);
info->num_effects = msg.msg.parameters[4];
info->persistency_caps = msg.msg.parameters[5];
return 0;
}