summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2016-10-25 22:42:16 +0100
committerAnas Nashif <nashif@linux.intel.com>2016-10-28 10:54:16 +0000
commitf35d0e6ead9c5c06815716a9064bc09b0b44707d (patch)
treec5a2a4b2d2a6e8532e86f6fb784709d2ac09fca3 /drivers
parent15dbaa8e9001799e3c68b500567346823e63805e (diff)
gpio/pcal9535a: Limit name space, add static.
Change-Id: I474bad1a44efda66cd2e324483742a257fac77e2 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio_pcal9535a.c2
-rw-r--r--drivers/gpio/gpio_pcal9535a.h8
2 files changed, 1 insertions, 9 deletions
diff --git a/drivers/gpio/gpio_pcal9535a.c b/drivers/gpio/gpio_pcal9535a.c
index ba7a30ab4..e3fef2698 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 c1c0b2da7..59e08ad5d 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 */