Commit Graph

4 Commits

Author SHA1 Message Date
Richard Hughes
71d111a21f gpio: Return the correct error when there is no device to open 2022-03-16 12:08:32 +00:00
Richard Hughes
013475fc49 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
2022-03-16 12:08:32 +00:00
Richard Hughes
c4ca026294 Allow devices to build instance IDs more easily
Provide a device instance builder that allows plugins to easily
create multiple instance IDs based on parent attributes.

Also fix a lot of the instance ID orders, so that we add more generic
IDs first, and more specific IDs after.
2022-03-03 09:13:29 +00:00
Richard Hughes
c71ca76235 Add a plugin to set GPIOs for the duration of an update 2022-02-16 14:01:07 +00:00