mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
acpi_gpiobus: OR GPIO_PIN_(IN|OUT)PUT into flags
Right now flags is set to 0 before this "=" -> "|=" change, but it will
matter when the NOT_YET section above becomes effective.
Approved by: re (kib)
MFC after: 2 weeks
Sponsored by: Amazon
(cherry picked from commit c808132731aa999947f4f7810157d7d8d9aaf61e)
(cherry picked from commit 7c8f273bfb)
This commit is contained in:
parent
ce99ca6967
commit
574e7bad4a
1 changed files with 2 additions and 2 deletions
|
|
@ -75,10 +75,10 @@ acpi_gpiobus_convflags(ACPI_RESOURCE_GPIO *gpio_res)
|
|||
#endif
|
||||
switch (gpio_res->IoRestriction) {
|
||||
case ACPI_IO_RESTRICT_INPUT:
|
||||
flags = GPIO_PIN_INPUT;
|
||||
flags |= GPIO_PIN_INPUT;
|
||||
break;
|
||||
case ACPI_IO_RESTRICT_OUTPUT:
|
||||
flags = GPIO_PIN_OUTPUT;
|
||||
flags |= GPIO_PIN_OUTPUT;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue