projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5415447
)
iio:adc:ad799x: Save some lines in ad7997_8_update_scan_mode() exit handling
author
Peter Meerwald
<pmeerw@pmeerw.net>
Sat, 6 Dec 2014 05:54:00 +0000
(
05:54
+0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 13 Jul 2014 20:48:43 +0000
(21:48 +0100)
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad799x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/adc/ad799x.c
b/drivers/iio/adc/ad799x.c
index 34d93a5eefb1d7eaaab681a9a4a85ae5e8650cb8..878400c331373298901c155983df480eed65e5ab 100644
(file)
--- 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,
return i2c_smbus_write_word_swapped(st->client, AD7998_CONF_REG,
st->config | (*scan_mask << AD799X_CHANNEL_SHIFT));
default:
-
break
;
+
return 0
;
}
-
- return 0;
}
static int ad799x_scan_direct(struct ad799x_state *st, unsigned ch)