cros-ec: Set protocol for cros-ec-usb-device

Specify "com.google.usb.crosec" to indicate support for Google's
USB endpoint updater protocol.
This commit is contained in:
Benson Leung 2020-06-22 14:38:07 -07:00 committed by Richard Hughes
parent 8ed9f5f0a1
commit 852c6685ff
2 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,10 @@ Firmware Format
The daemon will decompress the cabinet archive and extract a firmware blob in
the Google fmap [3] file format.
This plugin supports the following protocol ID:
* com.google.usb.crosec
GUID Generation
---------------

View File

@ -581,6 +581,7 @@ fu_cros_ec_usb_device_prepare_firmware (FuDevice *device,
static void
fu_cros_ec_usb_device_init (FuCrosEcUsbDevice *device)
{
fu_device_set_protocol (FU_DEVICE (device), "com.google.usb.crosec");
fu_device_set_version_format (FU_DEVICE (device), FWUPD_VERSION_FORMAT_TRIPLET);
}