Skip to content

Drivers: GPIO: Allow AW9523 to be used without interrupts #94298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drivers/gpio/gpio_aw9523b.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ static int gpio_aw9523b_port_toggle_bits(const struct device *dev, gpio_port_pin
return gpio_aw9523b_port_read_write_toggle(dev, pins, NULL, TOGGLE);
}

#if DT_ANY_INST_HAS_PROP_STATUS_OKAY(int_gpios)
static __maybe_unused void gpio_aw9523b_interrupt_worker(struct k_work *work)
{
struct gpio_aw9523b_data *const data =
Expand Down Expand Up @@ -355,6 +356,7 @@ static __maybe_unused void gpio_aw9523b_int_handler(const struct device *gpio_de

k_work_submit(&data->intr_worker);
}
#endif

static DEVICE_API(gpio, gpio_aw9523b_api) = {
.pin_configure = gpio_aw9523b_pin_configure,
Expand Down