mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 18:01:34 +00:00
trivial: Set the physical ID in FuI2cDevice->probe()
This commit is contained in:
parent
6281467a6b
commit
69bfebc498
@ -129,6 +129,10 @@ fu_i2c_device_probe (FuDevice *device, GError **error)
|
||||
if (!FU_DEVICE_CLASS (fu_i2c_device_parent_class)->probe (device, error))
|
||||
return FALSE;
|
||||
|
||||
/* set physical ID */
|
||||
if (!fu_udev_device_set_physical_id (FU_UDEV_DEVICE (device), "i2c", error))
|
||||
return FALSE;
|
||||
|
||||
#ifdef HAVE_GUDEV
|
||||
/* i2c devices all expose a name */
|
||||
tmp = g_udev_device_get_sysfs_attr (udev_device, "name");
|
||||
|
Loading…
Reference in New Issue
Block a user