Skip to content

Commit 337ca4e

Browse files
thugheskartben
authored andcommitted
drivers: sensor: Remove unused function
Building with clang warns: drivers/sensor/st/ism330dhcx/ism330dhcx.c:107:19: error: unused function 'ism330dhcx_reboot' [-Werror,-Wunused-function] static inline int ism330dhcx_reboot(const struct device *dev) Signed-off-by: Tom Hughes <tomhughes@chromium.org>
1 parent 538b525 commit 337ca4e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/sensor/st/ism330dhcx/ism330dhcx.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,6 @@ static int ism330dhcx_gyro_range_to_fs_val(int32_t range)
104104
return -EINVAL;
105105
}
106106

107-
static inline int ism330dhcx_reboot(const struct device *dev)
108-
{
109-
struct ism330dhcx_data *data = dev->data;
110-
111-
if (ism330dhcx_boot_set(data->ctx, 1) < 0) {
112-
return -EIO;
113-
}
114-
115-
/* Wait sensor turn-on time as per datasheet */
116-
k_busy_wait(35 * USEC_PER_MSEC);
117-
118-
return 0;
119-
}
120-
121107
static int ism330dhcx_accel_set_fs_raw(const struct device *dev, uint8_t fs)
122108
{
123109
struct ism330dhcx_data *data = dev->data;

0 commit comments

Comments
 (0)