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.

MFC after:	2 weeks
Sponsored by:	Amazon

(cherry picked from commit c808132731)
This commit is contained in:
Colin Percival 2024-10-12 11:12:15 -07:00
parent 14887d2c86
commit 7c8f273bfb

View file

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