drivers: fxos8700: Make internal function static
fxos8700_set_odr is used only inside this file and don't need to be exported. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
e31d2ab6b4
commit
54d33990f3
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ LOG_MODULE_REGISTER(FXOS8700, CONFIG_SENSOR_LOG_LEVEL);
|
|||
/* Convert the range (8g, 4g, 2g) to the encoded FS register field value */
|
||||
#define RANGE2FS(x) (__builtin_ctz(x) - 1)
|
||||
|
||||
int fxos8700_set_odr(const struct device *dev, const struct sensor_value *val)
|
||||
static int fxos8700_set_odr(const struct device *dev,
|
||||
const struct sensor_value *val)
|
||||
{
|
||||
const struct fxos8700_config *config = dev->config;
|
||||
struct fxos8700_data *data = dev->data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue