diff options
author | Alison Schofield <amsfield22@gmail.com> | 2016-09-02 22:54:21 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-09-03 11:00:51 -0400 |
commit | c060991912f8e71f6214204a2019ceceb315c17b (patch) | |
tree | 0487276848115aa0dc1caa4dd52348072e9f7fa7 /drivers/iio | |
parent | c8cdf70890d89c07c9e890b103106d58999f0ce4 (diff) |
iio: adc: ina2xx: remove unused debug field from chip global data
commit 1961bce76452 "iio: ina2xx: Remove trace_printk debug
statements" removed the code that used the chip->prev_ns field.
This patch cleans it up further by removing the unused field
and assignments.
Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Cc: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/ina2xx-adc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index 955f3fdaf519..59b7d76e1ad2 100644 --- a/drivers/iio/adc/ina2xx-adc.c +++ b/drivers/iio/adc/ina2xx-adc.c | |||
@@ -114,7 +114,6 @@ struct ina2xx_chip_info { | |||
114 | struct mutex state_lock; | 114 | struct mutex state_lock; |
115 | unsigned int shunt_resistor; | 115 | unsigned int shunt_resistor; |
116 | int avg; | 116 | int avg; |
117 | s64 prev_ns; /* track buffer capture time, check for underruns */ | ||
118 | int int_time_vbus; /* Bus voltage integration time uS */ | 117 | int int_time_vbus; /* Bus voltage integration time uS */ |
119 | int int_time_vshunt; /* Shunt voltage integration time uS */ | 118 | int int_time_vshunt; /* Shunt voltage integration time uS */ |
120 | bool allow_async_readout; | 119 | bool allow_async_readout; |
@@ -509,8 +508,6 @@ static int ina2xx_work_buffer(struct iio_dev *indio_dev) | |||
509 | iio_push_to_buffers_with_timestamp(indio_dev, | 508 | iio_push_to_buffers_with_timestamp(indio_dev, |
510 | (unsigned int *)data, time_a); | 509 | (unsigned int *)data, time_a); |
511 | 510 | ||
512 | chip->prev_ns = time_a; | ||
513 | |||
514 | return (unsigned long)(time_b - time_a) / 1000; | 511 | return (unsigned long)(time_b - time_a) / 1000; |
515 | }; | 512 | }; |
516 | 513 | ||
@@ -554,8 +551,6 @@ static int ina2xx_buffer_enable(struct iio_dev *indio_dev) | |||
554 | dev_dbg(&indio_dev->dev, "Async readout mode: %d\n", | 551 | dev_dbg(&indio_dev->dev, "Async readout mode: %d\n", |
555 | chip->allow_async_readout); | 552 | chip->allow_async_readout); |
556 | 553 | ||
557 | chip->prev_ns = iio_get_time_ns(indio_dev); | ||
558 | |||
559 | chip->task = kthread_run(ina2xx_capture_thread, (void *)indio_dev, | 554 | chip->task = kthread_run(ina2xx_capture_thread, (void *)indio_dev, |
560 | "%s:%d-%uus", indio_dev->name, indio_dev->id, | 555 | "%s:%d-%uus", indio_dev->name, indio_dev->id, |
561 | sampling_us); | 556 | sampling_us); |