sensor/bmc150: Limit name space, add static.
Change-Id: Ifd9ec1aec4e6486c14121b30bcd009b61456276d Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
c3b2861572
commit
7df7862749
1 changed files with 2 additions and 2 deletions
|
@ -582,7 +582,7 @@ err_poweroff:
|
|||
return -EIO;
|
||||
}
|
||||
|
||||
int bmc150_magn_init(struct device *dev)
|
||||
static int bmc150_magn_init(struct device *dev)
|
||||
{
|
||||
const struct bmc150_magn_config * const config =
|
||||
dev->config->config_info;
|
||||
|
@ -621,7 +621,7 @@ static const struct bmc150_magn_config bmc150_magn_config = {
|
|||
#endif
|
||||
};
|
||||
|
||||
struct bmc150_magn_data bmc150_magn_data;
|
||||
static struct bmc150_magn_data bmc150_magn_data;
|
||||
|
||||
DEVICE_INIT(bmc150_magn, CONFIG_BMC150_MAGN_DEV_NAME, bmc150_magn_init,
|
||||
&bmc150_magn_data, &bmc150_magn_config, NANOKERNEL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue