[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ec39ba5e-f797-575f-660f-b3ef9b6234e5@kernel.org>
Date: Fri, 30 Dec 2016 18:48:40 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: Scott Matheina <scott@...heina.com>, linux-kernel@...r.kernel.org
Cc: Hartmut Knaack <knaack.h@....de>,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
linux-iio@...r.kernel.org, devel@...verdev.osuosl.org
Subject: Re: [PATCHv4 4/8] Fix braces not present on all arms of if else
statement
On 30/12/16 18:46, Jonathan Cameron wrote:
> On 25/12/16 19:56, Scott Matheina wrote:
>> Adds braces to second arm of if else statement.
>>
>> Signed-off-by: Scott Matheina <scott@...heina.com>
> This patch is actually correct so applied to the togreg branch of iio.git.
Ah, patch title could be better. Should mention which driver it is for as
it is common for people to cherrypick individual patches out of a series
(like I just did).
I'll fix this one up to
staging:iio:adt7316...
Jonathan
>
> Thanks,
>
> Jonathan
>> ---
>> drivers/staging/iio/addac/adt7316.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c
>> index 2b584a0..e78d302 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)
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Powered by blists - more mailing lists