From d3ff59d383cb1bf8898b3fedefef2c390e84709e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Weinholt?= Date: Mon, 17 Feb 2020 12:12:42 +0100 Subject: [PATCH] drivers: gpio_pca95xx: add missing gpio_utils.h include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Include gpio_utils.h to fix a build failure: gpio_pca95xx.c:490:20: warning: implicit declaration of function 'GPIO_PORT_PIN_MASK_FROM_NGPIOS' [-Wimplicit-function-declaration] gpio_pca95xx.c:490:20: error: initializer element is not constant .port_pin_mask = GPIO_PORT_PIN_MASK_FROM_NGPIOS( DT_INST_##inst##_NXP_PCA95XX_NGPIOS), \ Signed-off-by: Göran Weinholt --- drivers/gpio/gpio_pca95xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio_pca95xx.c b/drivers/gpio/gpio_pca95xx.c index 68bd8cf2400..ba192c1fae9 100644 --- a/drivers/gpio/gpio_pca95xx.c +++ b/drivers/gpio/gpio_pca95xx.c @@ -18,6 +18,8 @@ #include #include +#include "gpio_utils.h" + #define LOG_LEVEL CONFIG_GPIO_LOG_LEVEL #include LOG_MODULE_REGISTER(gpio_pca95xx);