aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/ad799x.c
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2014-12-06 00:54:00 -0500
committerJonathan Cameron <jic23@kernel.org>2014-07-13 16:48:43 -0400
commitbd3bd4328a6743b836c9759f7510cd0ad6580a23 (patch)
tree33dcd8a2cadb5ea08053161fb829e67c9d38fd90 /drivers/iio/adc/ad799x.c
parent541544712ea9f1f4511ecc1ec7dcabf6ce042909 (diff)
iio:adc:ad799x: Save some lines in ad7997_8_update_scan_mode() exit handling
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/ad799x.c')
-rw-r--r--drivers/iio/adc/ad799x.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/adc/ad799x.c b/drivers/iio/adc/ad799x.c
index 34d93a5eefb1..878400c33137 100644
--- a/drivers/iio/adc/ad799x.c
+++ b/drivers/iio/adc/ad799x.c
@@ -193,10 +193,8 @@ static int ad7997_8_update_scan_mode(struct iio_dev *indio_dev,
193 return i2c_smbus_write_word_swapped(st->client, AD7998_CONF_REG, 193 return i2c_smbus_write_word_swapped(st->client, AD7998_CONF_REG,
194 st->config | (*scan_mask << AD799X_CHANNEL_SHIFT)); 194 st->config | (*scan_mask << AD799X_CHANNEL_SHIFT));
195 default: 195 default:
196 break; 196 return 0;
197 } 197 }
198
199 return 0;
200} 198}
201 199
202static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch) 200static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch)