diff options
author | Marcus Shawcroft <marcus.shawcroft@arm.com> | 2016-10-26 13:09:05 +0100 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-10-26 16:52:15 -0400 |
commit | 1a13bb8c402675e3f40962d86455d74593d8067e (patch) | |
tree | c082eb40bc4cc53ffbb2ce8d7fca16db1630e0b4 /drivers | |
parent | a2e91dadb3a0839fd3039888984da7f4d5c36ee2 (diff) |
sensor/hp206c: Limit namespace, add static.
Change-Id: I08d0029fae70434794e09a7c9563383d1db58fe0
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/sensor/hp206c/hp206c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sensor/hp206c/hp206c.c b/drivers/sensor/hp206c/hp206c.c index 9452016b4..3f508d864 100644 --- a/drivers/sensor/hp206c/hp206c.c +++ b/drivers/sensor/hp206c/hp206c.c @@ -294,7 +294,7 @@ static int hp206c_channel_get(struct device *dev, return 0; } -const struct sensor_driver_api hp206c_api = { +static const struct sensor_driver_api hp206c_api = { .attr_set = hp206c_attr_set, #ifdef CONFIG_HP206C_TRIGGER .trigger_set = hp206c_trigger_set, @@ -303,7 +303,7 @@ const struct sensor_driver_api hp206c_api = { .channel_get = hp206c_channel_get, }; -int hp206c_init(struct device *dev) +static int hp206c_init(struct device *dev) { struct hp206c_device_data *hp206c = dev->driver_data; |