openinput: print device protocol name

Signed-off-by: Filipe Laíns <lains@riseup.net>
This commit is contained in:
Filipe Laíns
2021-02-06 01:01:47 +00:00
committed by Filipe Laíns
parent 286f13c654
commit 18af0f97d2

View File

@@ -168,8 +168,9 @@ openinput_info_version(struct ratbag_device *device)
return 0;
}
#define OI_FUNCTION_FW_INFO_VENDOR 0x00
#define OI_FUNCTION_FW_INFO_VERSION 0x01
#define OI_FUNCTION_FW_INFO_VENDOR 0x00
#define OI_FUNCTION_FW_INFO_VERSION 0x01
#define OI_FUNCTION_FW_INFO_DEVICE_NAME 0x02
static int
openinput_info_fw_info(struct ratbag_device *device,
@@ -235,6 +236,10 @@ openinput_probe(struct ratbag_device *device)
if (!ret)
log_info(device->ratbag, "openinput: firmware version: %s\n", str);
ret = openinput_info_fw_info(device, OI_FUNCTION_FW_INFO_DEVICE_NAME, str, sizeof(str));
if (!ret)
log_info(device->ratbag, "openinput: device: %s\n", str);
ratbag_device_init_profiles(device,
drv_data->num_profiles,
drv_data->num_resolutions,