Commit 278563ed authored by Paul He's avatar Paul He Committed by Fabio Baltieri
Browse files

drivers: input: gt911: fix error 'ret' undeclared



When CONFIG_INPUT_GT911_INTERRUPT is set to 'y', it will get this
undeclared error, now fix it.

Signed-off-by: default avatarPaul He <pawpawhe@gmail.com>
parent f856e7ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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),