sensor/lps25hb: Limit name space add static.
Change-Id: I707fd3666f27a982f9b4ef0facf7a3a211db8914 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
5fe0a759ee
commit
f112e8e9bc
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ err_poweroff:
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
int lps25hb_init(struct device *dev)
|
static int lps25hb_init(struct device *dev)
|
||||||
{
|
{
|
||||||
const struct lps25hb_config * const config = dev->config->config_info;
|
const struct lps25hb_config * const config = dev->config->config_info;
|
||||||
struct lps25hb_data *data = dev->driver_data;
|
struct lps25hb_data *data = dev->driver_data;
|
||||||
|
@ -187,7 +187,7 @@ static const struct lps25hb_config lps25hb_config = {
|
||||||
.i2c_slave_addr = CONFIG_LPS25HB_I2C_ADDR,
|
.i2c_slave_addr = CONFIG_LPS25HB_I2C_ADDR,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct lps25hb_data lps25hb_data;
|
static struct lps25hb_data lps25hb_data;
|
||||||
|
|
||||||
DEVICE_INIT(lps25hb, CONFIG_LPS25HB_DEV_NAME, lps25hb_init,
|
DEVICE_INIT(lps25hb, CONFIG_LPS25HB_DEV_NAME, lps25hb_init,
|
||||||
&lps25hb_data, &lps25hb_config, NANOKERNEL,
|
&lps25hb_data, &lps25hb_config, NANOKERNEL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue