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:
parent
8f92c5462e
commit
40d2572d12
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue