mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 12:35:57 +00:00
trivial: Cast to FuDevice from FuUdevDevice
This commit is contained in:
parent
a958e1c32f
commit
b91efa6c38
@ -84,8 +84,8 @@ fu_plugin_udev_device_added (FuPlugin *plugin, FuUdevDevice *device, GError **er
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* did we get enough data */
|
/* did we get enough data */
|
||||||
fu_device_add_flag (device, FWUPD_DEVICE_FLAG_INTERNAL);
|
fu_device_add_flag (FU_DEVICE (device), FWUPD_DEVICE_FLAG_INTERNAL);
|
||||||
fu_device_add_icon (device, "audio-card");
|
fu_device_add_icon (FU_DEVICE (device), "audio-card");
|
||||||
|
|
||||||
/* get the FW version from the rom when unlocked */
|
/* get the FW version from the rom when unlocked */
|
||||||
rom_fn = g_build_filename (fu_udev_device_get_sysfs_path (device), "rom", NULL);
|
rom_fn = g_build_filename (fu_udev_device_get_sysfs_path (device), "rom", NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user