diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-09-15 12:50:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-09-15 14:05:07 -0400 |
commit | 8c60c7e75de79fe429afea3c7300d010c091bc4e (patch) | |
tree | 81aa0ec318da5d305f06f7944017732a7f63dd5b /drivers/iio/adc | |
parent | 5d65d92045cb7d3b2c45020c0e62d6d1c1d34f37 (diff) |
iio: Remove unnecessary casts for iio_push_to_buffers()
Now that iio_push_to_buffers() takes a void pointer for the data parameter we
can remove those casts to u8*.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r-- | drivers/iio/adc/ad7266.c | 2 | ||||
-rw-r--r-- | drivers/iio/adc/ad7298.c | 2 | ||||
-rw-r--r-- | drivers/iio/adc/ad7923.c | 2 | ||||
-rw-r--r-- | drivers/iio/adc/ad_sigma_delta.c | 2 | ||||
-rw-r--r-- | drivers/iio/adc/at91_adc.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/iio/adc/ad7266.c b/drivers/iio/adc/ad7266.c index 371731df1634..5bfed2398b70 100644 --- a/drivers/iio/adc/ad7266.c +++ b/drivers/iio/adc/ad7266.c | |||
@@ -98,7 +98,7 @@ static irqreturn_t ad7266_trigger_handler(int irq, void *p) | |||
98 | if (ret == 0) { | 98 | if (ret == 0) { |
99 | if (indio_dev->scan_timestamp) | 99 | if (indio_dev->scan_timestamp) |
100 | ((s64 *)st->data)[1] = pf->timestamp; | 100 | ((s64 *)st->data)[1] = pf->timestamp; |
101 | iio_push_to_buffers(indio_dev, (u8 *)st->data); | 101 | iio_push_to_buffers(indio_dev, st->data); |
102 | } | 102 | } |
103 | 103 | ||
104 | iio_trigger_notify_done(indio_dev->trig); | 104 | iio_trigger_notify_done(indio_dev->trig); |
diff --git a/drivers/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c index 85d1481c312f..0812556c11ff 100644 --- a/drivers/iio/adc/ad7298.c +++ b/drivers/iio/adc/ad7298.c | |||
@@ -172,7 +172,7 @@ static irqreturn_t ad7298_trigger_handler(int irq, void *p) | |||
172 | &time_ns, sizeof(time_ns)); | 172 | &time_ns, sizeof(time_ns)); |
173 | } | 173 | } |
174 | 174 | ||
175 | iio_push_to_buffers(indio_dev, (u8 *)st->rx_buf); | 175 | iio_push_to_buffers(indio_dev, st->rx_buf); |
176 | 176 | ||
177 | done: | 177 | done: |
178 | iio_trigger_notify_done(indio_dev->trig); | 178 | iio_trigger_notify_done(indio_dev->trig); |
diff --git a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c index 4108dbb28c3d..7eb4cb5a7f0d 100644 --- a/drivers/iio/adc/ad7923.c +++ b/drivers/iio/adc/ad7923.c | |||
@@ -187,7 +187,7 @@ static irqreturn_t ad7923_trigger_handler(int irq, void *p) | |||
187 | &time_ns, sizeof(time_ns)); | 187 | &time_ns, sizeof(time_ns)); |
188 | } | 188 | } |
189 | 189 | ||
190 | iio_push_to_buffers(indio_dev, (u8 *)st->rx_buf); | 190 | iio_push_to_buffers(indio_dev, st->rx_buf); |
191 | 191 | ||
192 | done: | 192 | done: |
193 | iio_trigger_notify_done(indio_dev->trig); | 193 | iio_trigger_notify_done(indio_dev->trig); |
diff --git a/drivers/iio/adc/ad_sigma_delta.c b/drivers/iio/adc/ad_sigma_delta.c index f0d6335ae087..78d276f40c8e 100644 --- a/drivers/iio/adc/ad_sigma_delta.c +++ b/drivers/iio/adc/ad_sigma_delta.c | |||
@@ -391,7 +391,7 @@ static irqreturn_t ad_sd_trigger_handler(int irq, void *p) | |||
391 | break; | 391 | break; |
392 | } | 392 | } |
393 | 393 | ||
394 | iio_push_to_buffers(indio_dev, (uint8_t *)data); | 394 | iio_push_to_buffers(indio_dev, data); |
395 | 395 | ||
396 | iio_trigger_notify_done(indio_dev->trig); | 396 | iio_trigger_notify_done(indio_dev->trig); |
397 | sigma_delta->irq_dis = false; | 397 | sigma_delta->irq_dis = false; |
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index 84be63bdf038..6da5ebb25502 100644 --- a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c | |||
@@ -89,7 +89,7 @@ static irqreturn_t at91_adc_trigger_handler(int irq, void *p) | |||
89 | *timestamp = pf->timestamp; | 89 | *timestamp = pf->timestamp; |
90 | } | 90 | } |
91 | 91 | ||
92 | iio_push_to_buffers(idev, (u8 *)st->buffer); | 92 | iio_push_to_buffers(idev, st->buffer); |
93 | 93 | ||
94 | iio_trigger_notify_done(idev->trig); | 94 | iio_trigger_notify_done(idev->trig); |
95 | 95 | ||