diff options
Diffstat (limited to 'drivers/iio/adc/xilinx-xadc-events.c')
-rw-r--r-- | drivers/iio/adc/xilinx-xadc-events.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/iio/adc/xilinx-xadc-events.c b/drivers/iio/adc/xilinx-xadc-events.c index 3e7f0d7a80c3..edcf3aabd70d 100644 --- a/drivers/iio/adc/xilinx-xadc-events.c +++ b/drivers/iio/adc/xilinx-xadc-events.c | |||
@@ -31,17 +31,11 @@ static const struct iio_chan_spec *xadc_event_to_channel( | |||
31 | static void xadc_handle_event(struct iio_dev *indio_dev, unsigned int event) | 31 | static void xadc_handle_event(struct iio_dev *indio_dev, unsigned int event) |
32 | { | 32 | { |
33 | const struct iio_chan_spec *chan; | 33 | const struct iio_chan_spec *chan; |
34 | unsigned int offset; | ||
35 | 34 | ||
36 | /* Temperature threshold error, we don't handle this yet */ | 35 | /* Temperature threshold error, we don't handle this yet */ |
37 | if (event == 0) | 36 | if (event == 0) |
38 | return; | 37 | return; |
39 | 38 | ||
40 | if (event < 4) | ||
41 | offset = event; | ||
42 | else | ||
43 | offset = event + 4; | ||
44 | |||
45 | chan = xadc_event_to_channel(indio_dev, event); | 39 | chan = xadc_event_to_channel(indio_dev, event); |
46 | 40 | ||
47 | if (chan->type == IIO_TEMP) { | 41 | if (chan->type == IIO_TEMP) { |