hidpp10: request individual features

Not doing anything with it, this is just playing around.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2015-08-20 15:57:11 +10:00
parent 4c7fb6f803
commit 1563efd988

View File

@@ -225,6 +225,7 @@ static int hidpp10_get_device_info(struct ratbag_device *device, struct hidpp10_
union hidpp10_message firmware_information = CMD_DEVICE_FIRMWARE_INFORMATION(idx, FIRMWARE_INFO_ITEM_FW_NAME_AND_VERSION(1));
union hidpp10_message build_information = CMD_DEVICE_FIRMWARE_INFORMATION(idx, FIRMWARE_INFO_ITEM_FW_BUILD_NUMBER(1));
union hidpp10_message notifications = CMD_HIDPP_NOTIFICATIONS(idx, GET_REGISTER_REQ);
union hidpp10_message features = CMD_ENABLE_INDIVIDUAL_FEATURES(idx, GET_REGISTER_REQ);
size_t name_size;
int res;
@@ -265,6 +266,10 @@ static int hidpp10_get_device_info(struct ratbag_device *device, struct hidpp10_
if (res)
return 0;
res = hidpp10_request_command(device, &features);
if (res)
return 0;
return 0;
}