Skip to content

Commit ce1bc33

Browse files
thugheskartben
authored andcommitted
drivers: sensor: Remove unused function
Building with clang warns: drivers/sensor/st/lsm6dso16is/lsm6dso16is.c:83:19: error: unused function 'lsm6dso16is_reboot' [-Werror,-Wunused-function] static inline int lsm6dso16is_reboot(const struct device *dev) ^ Signed-off-by: Tom Hughes <[email protected]>
1 parent cc73219 commit ce1bc33

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

drivers/sensor/st/lsm6dso16is/lsm6dso16is.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,6 @@ static int lsm6dso16is_gyro_range_to_fs_val(int32_t range)
8080
return -EINVAL;
8181
}
8282

83-
static inline int lsm6dso16is_reboot(const struct device *dev)
84-
{
85-
const struct lsm6dso16is_config *cfg = dev->config;
86-
stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx;
87-
88-
if (lsm6dso16is_boot_set(ctx, 1) < 0) {
89-
return -EIO;
90-
}
91-
92-
/* Wait sensor turn-on time as per datasheet */
93-
k_sleep(K_MSEC(35)); /* turn-on time in ms */
94-
95-
return 0;
96-
}
97-
9883
static int lsm6dso16is_accel_set_fs_raw(const struct device *dev, uint8_t fs)
9984
{
10085
const struct lsm6dso16is_config *cfg = dev->config;

0 commit comments

Comments
 (0)