trivial: Cast to FuDevice from FuUdevDevice

This commit is contained in:
Richard Hughes 2019-01-16 14:50:27 +00:00
parent a958e1c32f
commit b91efa6c38

View File

@ -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);