Skip to content

Commit 19ec804

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

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/sensor/st/iis2iclx/iis2iclx.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,6 @@ static int iis2iclx_accel_range_to_fs_val(int32_t range)
6565
return -EINVAL;
6666
}
6767

68-
static inline int iis2iclx_reboot(const struct device *dev)
69-
{
70-
const struct iis2iclx_config *cfg = dev->config;
71-
72-
if (iis2iclx_boot_set((stmdev_ctx_t *)&cfg->ctx, 1) < 0) {
73-
return -EIO;
74-
}
75-
76-
/* Wait sensor turn-on time as per datasheet */
77-
k_msleep(35);
78-
79-
return 0;
80-
}
81-
8268
static int iis2iclx_accel_set_fs_raw(const struct device *dev, uint8_t fs)
8369
{
8470
const struct iis2iclx_config *cfg = dev->config;

0 commit comments

Comments
 (0)