superio: Continue to add the SuperIO-IT8587 instance IDs (#3796)

The GUIDs are in use by old firmware, and so of course we have to
continue adding them.

See https://github.com/fwupd/fwupd/pull/3734#issuecomment-919829988
This commit is contained in:
Richard Hughes 2021-09-25 22:11:43 +01:00 committed by GitHub
parent 35fff9684e
commit 08f4040fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,10 +268,13 @@ fu_superio_device_probe(FuDevice *device, GError **error)
{
FuSuperioDevice *self = FU_SUPERIO_DEVICE(device);
FuSuperioDevicePrivate *priv = GET_PRIVATE(self);
g_autofree gchar *devid = NULL;
g_autofree gchar *name = NULL;
/* use the chipset name as the logical ID and for the GUID */
fu_device_set_logical_id(device, priv->chipset);
devid = g_strdup_printf("SuperIO-%s", priv->chipset);
fu_device_add_instance_id(device, devid);
name = g_strdup_printf("SuperIO %s", priv->chipset);
fu_device_set_name(FU_DEVICE(self), name);
return TRUE;