mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
iio: adc: ad7779: Remove unused completion field
struct ad7779_state contains a completion field that is initialized in ad7779_setup_without_backend() but never waited on or signaled anywhere in the driver. Remove the dead code. Suggested-by: Joshua Crofts <joshua.crofts1@gmail.com> Signed-off-by: Moksh Panicker <mokshpanicker.7@gmail.com> Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
a160afd329
commit
0790de3129
|
|
@ -143,7 +143,6 @@ struct ad7779_state {
|
|||
const struct ad7779_chip_info *chip_info;
|
||||
struct clk *mclk;
|
||||
struct iio_trigger *trig;
|
||||
struct completion completion;
|
||||
unsigned int sampling_freq;
|
||||
enum ad7779_filter filter_enabled;
|
||||
struct iio_backend *back;
|
||||
|
|
@ -852,8 +851,6 @@ static int ad7779_setup_without_backend(struct ad7779_state *st, struct iio_dev
|
|||
|
||||
indio_dev->trig = iio_trigger_get(st->trig);
|
||||
|
||||
init_completion(&st->completion);
|
||||
|
||||
ret = devm_iio_triggered_buffer_setup(dev, indio_dev,
|
||||
&iio_pollfunc_store_time,
|
||||
&ad7779_trigger_handler,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user