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:
83b0b39
)
staging:iio:adt7316: Fix braces not present on all arms of if else statement
author
Scott Matheina
<scott@matheina.com>
Sun, 25 Dec 2016 19:56:42 +0000
(13:56 -0600)
committer
Jonathan Cameron
<jic23@kernel.org>
Fri, 30 Dec 2016 18:49:16 +0000
(18:49 +0000)
Adds braces to second arm of if else statement.
Signed-off-by: Scott Matheina <scott@matheina.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/addac/adt7316.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/iio/addac/adt7316.c
b/drivers/staging/iio/addac/adt7316.c
index a7d90c8bac5e54827eed43c0993121c2ea77f57c..6054c7298fce3bf527ada9c5f5e1426b2ac3b116 100644
(file)
--- a/
drivers/staging/iio/addac/adt7316.c
+++ b/
drivers/staging/iio/addac/adt7316.c
@@
-661,8
+661,9
@@
static ssize_t adt7316_store_da_high_resolution(struct device *dev,
chip->dac_bits = 12;
else if (chip->id == ID_ADT7317 || chip->id == ID_ADT7517)
chip->dac_bits = 10;
- } else
+ } else
{
config3 = chip->config3 & (~ADT7316_DA_HIGH_RESOLUTION);
+ }
ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG3, config3);
if (ret)