From f35d0e6ead9c5c06815716a9064bc09b0b44707d Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Tue, 25 Oct 2016 22:42:16 +0100 Subject: [PATCH] gpio/pcal9535a: Limit name space, add static. Change-Id: I474bad1a44efda66cd2e324483742a257fac77e2 Signed-off-by: Marcus Shawcroft --- drivers/gpio/gpio_pcal9535a.c | 2 +- drivers/gpio/gpio_pcal9535a.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpio/gpio_pcal9535a.c b/drivers/gpio/gpio_pcal9535a.c index ba7a30ab493..e3fef26986a 100644 --- a/drivers/gpio/gpio_pcal9535a.c +++ b/drivers/gpio/gpio_pcal9535a.c @@ -542,7 +542,7 @@ static const struct gpio_driver_api gpio_pcal9535a_drv_api_funcs = { * @param dev Device struct * @return 0 if successful, failed otherwise. */ -int gpio_pcal9535a_init(struct device *dev) +static int gpio_pcal9535a_init(struct device *dev) { const struct gpio_pcal9535a_config * const config = dev->config->config_info; diff --git a/drivers/gpio/gpio_pcal9535a.h b/drivers/gpio/gpio_pcal9535a.h index c1c0b2da7a6..59e08ad5d94 100644 --- a/drivers/gpio/gpio_pcal9535a.h +++ b/drivers/gpio/gpio_pcal9535a.h @@ -30,14 +30,6 @@ extern "C" { #endif -/** - * @brief Initialization function for PCAL9535A - * - * @param dev Device struct - * @return 0 if successful, failed otherwise - */ -extern int gpio_pcal9535a_init(struct device *dev); - /** Configuration data */ struct gpio_pcal9535a_config { /** The master I2C device's name */