Skip to content

Commit

Permalink
drivers: input: gt911: fix error 'ret' undeclared
Browse files Browse the repository at this point in the history
When CONFIG_INPUT_GT911_INTERRUPT is set to 'y', it will get this
undeclared error, now fix it.

Signed-off-by: Paul He <pawpawhe@gmail.com>
  • Loading branch information
pawpawhe authored and fabiobaltieri committed Jul 20, 2023
1 parent f856e7b commit 278563e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/input_gt911.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ static int gt911_init(const struct device *dev)
r = gpio_add_callback(config->int_gpio.port, &data->int_gpio_cb);
if (r < 0) {
LOG_ERR("Could not set gpio callback");
return ret;
return r;
}
#else
k_timer_start(&data->timer, K_MSEC(CONFIG_INPUT_GT911_PERIOD_MS),
Expand Down

0 comments on commit 278563e

Please sign in to comment.