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:
Richard Hughes 2022-03-15 17:10:05 +00:00
parent 57862d844e
commit 013475fc49

View File

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