Commit bd3bd432 authored by Peter Meerwald's avatar Peter Meerwald Committed by Jonathan Cameron

iio:adc:ad799x: Save some lines in ad7997_8_update_scan_mode() exit handling

Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 54154471
...@@ -193,10 +193,8 @@ static int ad7997_8_update_scan_mode(struct iio_dev *indio_dev, ...@@ -193,10 +193,8 @@ static int ad7997_8_update_scan_mode(struct iio_dev *indio_dev,
return i2c_smbus_write_word_swapped(st->client, AD7998_CONF_REG, return i2c_smbus_write_word_swapped(st->client, AD7998_CONF_REG,
st->config | (*scan_mask << AD799X_CHANNEL_SHIFT)); st->config | (*scan_mask << AD799X_CHANNEL_SHIFT));
default: default:
break;
}
return 0; return 0;
}
} }
static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch) static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment