Skip to content

Commit

Permalink
iio: adc: ad9371_conv: Remove useless variable
Browse files Browse the repository at this point in the history
No functional changes.

Signed-off-by: Michael Hennerich <[email protected]>
  • Loading branch information
mhennerich committed Jun 15, 2022
1 parent 5c9e395 commit d546169
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/iio/adc/ad9371_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,12 @@ static int ad9371_post_setup(struct iio_dev *indio_dev)
{
struct axiadc_state *st = iio_priv(indio_dev);
struct axiadc_converter *conv = iio_device_get_drvdata(indio_dev);

unsigned num_chan;
int i;

num_chan = conv->chip_info->num_channels;

conv->indio_dev = indio_dev;
axiadc_write(st, ADI_REG_CNTRL, 0);

for (i = 0; i < num_chan; i++) {
for (i = 0; i < conv->chip_info->num_channels; i++) {
axiadc_write(st, ADI_REG_CHAN_CNTRL_1(i),
ADI_DCFILT_OFFSET(0));
axiadc_write(st, ADI_REG_CHAN_CNTRL_2(i),
Expand All @@ -148,7 +144,6 @@ static int ad9371_post_setup(struct iio_dev *indio_dev)
ADI_ENABLE | ADI_IQCOR_ENB);
}


return 0;
}

Expand Down

0 comments on commit d546169

Please sign in to comment.