sensor/lsm9ds0_gyro: Limit name space, add static.

Change-Id: Ifff624a2c0f619d7bb3e005b4e52b4602730a66d
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-11-27 10:23:07 +00:00
commit 40d2572d12

View file

@ -325,7 +325,7 @@ err_poweroff:
return -EIO;
}
int lsm9ds0_gyro_init(struct device *dev)
static int lsm9ds0_gyro_init(struct device *dev)
{
const struct lsm9ds0_gyro_config * const config =
dev->config->config_info;
@ -366,7 +366,7 @@ static const struct lsm9ds0_gyro_config lsm9ds0_gyro_config = {
#endif
};
struct lsm9ds0_gyro_data lsm9ds0_gyro_data;
static struct lsm9ds0_gyro_data lsm9ds0_gyro_data;
DEVICE_INIT(lsm9ds0_gyro, CONFIG_LSM9DS0_GYRO_DEV_NAME, lsm9ds0_gyro_init,
&lsm9ds0_gyro_data, &lsm9ds0_gyro_config, POST_KERNEL,