mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00: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. MFC after: 2 weeks Sponsored by: Amazon
This commit is contained in:
parent
c7a2636889
commit
c808132731
@ -75,10 +75,10 @@ acpi_gpiobus_convflags(ACPI_RESOURCE_GPIO *gpio_res)
|
|||||||
#endif
|
#endif
|
||||||
switch (gpio_res->IoRestriction) {
|
switch (gpio_res->IoRestriction) {
|
||||||
case ACPI_IO_RESTRICT_INPUT:
|
case ACPI_IO_RESTRICT_INPUT:
|
||||||
flags = GPIO_PIN_INPUT;
|
flags |= GPIO_PIN_INPUT;
|
||||||
break;
|
break;
|
||||||
case ACPI_IO_RESTRICT_OUTPUT:
|
case ACPI_IO_RESTRICT_OUTPUT:
|
||||||
flags = GPIO_PIN_OUTPUT;
|
flags |= GPIO_PIN_OUTPUT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user