diff options
author | Scott Matheina <scott@matheina.com> | 2016-12-25 20:56:42 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-12-30 19:49:16 +0100 |
commit | 9a18636ebbac06783180873cb8bcec115323ffc2 (patch) | |
tree | c6d4778df67aa611f603b6718adfbb9b86f66588 | |
parent | iio: dummy: No semicolon at end of function definition (diff) | |
download | linux-9a18636ebbac06783180873cb8bcec115323ffc2.tar.xz linux-9a18636ebbac06783180873cb8bcec115323ffc2.zip |
staging:iio:adt7316: Fix braces not present on all arms of if else statement
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>
-rw-r--r-- | drivers/staging/iio/addac/adt7316.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index a7d90c8bac5e..6054c7298fce 100644 --- 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) |