sensor/lsm6ds0: Limit name space, add static.
Change-Id: I227865ebbb6bf66b63694639dede3f0276c4cf22 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
9dc050d15e
commit
14cd63a92a
1 changed files with 2 additions and 2 deletions
|
@ -475,7 +475,7 @@ static int lsm6ds0_init_chip(struct device *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int lsm6ds0_init(struct device *dev)
|
static int lsm6ds0_init(struct device *dev)
|
||||||
{
|
{
|
||||||
const struct lsm6ds0_config * const config = dev->config->config_info;
|
const struct lsm6ds0_config * const config = dev->config->config_info;
|
||||||
struct lsm6ds0_data *data = dev->driver_data;
|
struct lsm6ds0_data *data = dev->driver_data;
|
||||||
|
@ -502,7 +502,7 @@ static const struct lsm6ds0_config lsm6ds0_config = {
|
||||||
.i2c_slave_addr = CONFIG_LSM6DS0_I2C_ADDR,
|
.i2c_slave_addr = CONFIG_LSM6DS0_I2C_ADDR,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct lsm6ds0_data lsm6ds0_data;
|
static struct lsm6ds0_data lsm6ds0_data;
|
||||||
|
|
||||||
DEVICE_INIT(lsm6ds0, CONFIG_LSM6DS0_DEV_NAME, lsm6ds0_init,
|
DEVICE_INIT(lsm6ds0, CONFIG_LSM6DS0_DEV_NAME, lsm6ds0_init,
|
||||||
&lsm6ds0_data, &lsm6ds0_config, NANOKERNEL,
|
&lsm6ds0_data, &lsm6ds0_config, NANOKERNEL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue