Skip to content

Commit d46fa0b

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

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

drivers/sensor/st/lsm6dso/lsm6dso.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,6 @@ static int lsm6dso_gyro_range_to_fs_val(int32_t range)
8686
return -EINVAL;
8787
}
8888

89-
static inline int lsm6dso_reboot(const struct device *dev)
90-
{
91-
const struct lsm6dso_config *cfg = dev->config;
92-
stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx;
93-
94-
if (lsm6dso_boot_set(ctx, 1) < 0) {
95-
return -EIO;
96-
}
97-
98-
/* Wait sensor turn-on time as per datasheet */
99-
k_busy_wait(35 * USEC_PER_MSEC);
100-
101-
return 0;
102-
}
103-
10489
static int lsm6dso_accel_set_fs_raw(const struct device *dev, uint8_t fs)
10590
{
10691
const struct lsm6dso_config *cfg = dev->config;

0 commit comments

Comments
 (0)