summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorsimran singhal <singhalsimran0@gmail.com>2017-04-01 10:16:24 -0400
committerJonathan Cameron <jic23@kernel.org>2017-04-02 04:51:45 -0400
commit407e0b537eadc9f5e98da74b746ce84f42b89cd7 (patch)
tree4f8f38e5dcf6052922f8c9ff7439896235bcd3cf /drivers/iio
parent7ae6df68d68ed1d68d6bac11edc332da67108d8f (diff)
iio: imu: st_lsm6dsx: Remove unnecessary cast on void pointer
The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: simran singhal <singhalsimran0@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
index e71eccedd340..5a748341a1d5 100644
--- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
+++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
@@ -364,7 +364,7 @@ static int st_lsm6dsx_update_fifo(struct iio_dev *iio_dev, bool enable)
364 364
365static irqreturn_t st_lsm6dsx_handler_irq(int irq, void *private) 365static irqreturn_t st_lsm6dsx_handler_irq(int irq, void *private)
366{ 366{
367 struct st_lsm6dsx_hw *hw = (struct st_lsm6dsx_hw *)private; 367 struct st_lsm6dsx_hw *hw = private;
368 struct st_lsm6dsx_sensor *sensor; 368 struct st_lsm6dsx_sensor *sensor;
369 int i; 369 int i;
370 370
@@ -388,7 +388,7 @@ static irqreturn_t st_lsm6dsx_handler_irq(int irq, void *private)
388 388
389static irqreturn_t st_lsm6dsx_handler_thread(int irq, void *private) 389static irqreturn_t st_lsm6dsx_handler_thread(int irq, void *private)
390{ 390{
391 struct st_lsm6dsx_hw *hw = (struct st_lsm6dsx_hw *)private; 391 struct st_lsm6dsx_hw *hw = private;
392 int count; 392 int count;
393 393
394 mutex_lock(&hw->fifo_lock); 394 mutex_lock(&hw->fifo_lock);