acpi_gpiobus.c (92adaa5862d5ea94318a011e0618622d0fb72521) acpi_gpiobus.c (c808132731aa999947f4f7810157d7d8d9aaf61e)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2024 Ahmad Khalifa <ahmadkhalifa570@gmail.com>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 61 unchanged lines hidden (view full) ---

70 }
71
72 if (gpio_res->Shareable == ACPI_SHARED)
73 flags |= GPIO_INTR_SHAREABLE;
74 }
75#endif
76 switch (gpio_res->IoRestriction) {
77 case ACPI_IO_RESTRICT_INPUT:
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2024 Ahmad Khalifa <ahmadkhalifa570@gmail.com>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 61 unchanged lines hidden (view full) ---

70 }
71
72 if (gpio_res->Shareable == ACPI_SHARED)
73 flags |= GPIO_INTR_SHAREABLE;
74 }
75#endif
76 switch (gpio_res->IoRestriction) {
77 case ACPI_IO_RESTRICT_INPUT:
78 flags = GPIO_PIN_INPUT;
78 flags |= GPIO_PIN_INPUT;
79 break;
80 case ACPI_IO_RESTRICT_OUTPUT:
79 break;
80 case ACPI_IO_RESTRICT_OUTPUT:
81 flags = GPIO_PIN_OUTPUT;
81 flags |= GPIO_PIN_OUTPUT;
82 break;
83 }
84
85 switch (gpio_res->PinConfig) {
86 case ACPI_PIN_CONFIG_PULLUP:
87 flags |= GPIO_PIN_PULLUP;
88 break;
89 case ACPI_PIN_CONFIG_PULLDOWN:

--- 222 unchanged lines hidden ---
82 break;
83 }
84
85 switch (gpio_res->PinConfig) {
86 case ACPI_PIN_CONFIG_PULLUP:
87 flags |= GPIO_PIN_PULLUP;
88 break;
89 case ACPI_PIN_CONFIG_PULLDOWN:

--- 222 unchanged lines hidden ---