mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-04 05:26:58 +00:00
trivial: Actually open the GPIO device before querying the chipinfo
Set the GPIO open flags as without the fd is not opened. Fixes https://github.com/fwupd/fwupd/issues/4388
This commit is contained in:
parent
57862d844e
commit
013475fc49
@ -190,6 +190,7 @@ fu_gpio_device_assign(FuGpioDevice *self, const gchar *id, gboolean value, GErro
|
||||
static void
|
||||
fu_gpio_device_init(FuGpioDevice *self)
|
||||
{
|
||||
fu_udev_device_set_flags(FU_UDEV_DEVICE(self), FU_UDEV_DEVICE_FLAG_OPEN_READ);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user