Skip to content
Commit a887fe16 authored by Tom Hughes's avatar Tom Hughes Committed by Benjamin Cabé
Browse files

drivers: sensor: Fix unused function warning



Building with clang warns:

drivers/sensor/st/lis2dw12/lis2dw12.c:194:23: error: unused
function 'sensor_ms2_to_mg' [-Werror,-Wunused-function]
static inline int32_t sensor_ms2_to_mg(const struct sensor_value *ms2)
                      ^

Move the function to include/zephyr/drivers/sensor.h with the other
sensor_ms2_to* functions.

Signed-off-by: default avatarTom Hughes <tomhughes@chromium.org>
parent 5bb02989
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment