gpio/pcal9535a: Limit name space, add static.

Change-Id: I474bad1a44efda66cd2e324483742a257fac77e2
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-10-25 22:42:16 +01:00 committed by Anas Nashif
parent 15dbaa8e90
commit f35d0e6ead
2 changed files with 1 additions and 9 deletions

View File

@ -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;

View File

@ -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 */