mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-05 02:38:20 +00:00
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>
This commit is contained in:
parent
83b0b397b9
commit
9a18636ebb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user