* [PATCH] staging:iio:light: Add some missing brackets to make sure code works as intended. Note this is not a bug due to the fact the region cannot be reached without the sanity check passing. The autobuilder reported it as missaligned code which is kind of true as well.
@ 2015-05-02 11:05 Jonathan Cameron
2015-05-02 18:54 ` Daniel Baluta
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2015-05-02 11:05 UTC (permalink / raw)
To: linux-iio; +Cc: Jonathan Cameron, Roberta Dobrescu
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Roberta Dobrescu <roberta.dobrescu@gmail.com>
---
drivers/staging/iio/light/isl29018.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
index 08ca9a4172e3..e646c5d24004 100644
--- a/drivers/staging/iio/light/isl29018.c
+++ b/drivers/staging/iio/light/isl29018.c
@@ -369,12 +369,13 @@ static int isl29018_write_raw(struct iio_dev *indio_dev,
}
break;
case IIO_CHAN_INFO_INT_TIME:
- if (chan->type == IIO_LIGHT)
+ if (chan->type == IIO_LIGHT) {
if (val != 0) {
mutex_unlock(&chip->lock);
return -EINVAL;
}
ret = isl29018_set_integration_time(chip, val2);
+ }
break;
case IIO_CHAN_INFO_SCALE:
if (chan->type == IIO_LIGHT)
--
2.3.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging:iio:light: Add some missing brackets to make sure code works as intended. Note this is not a bug due to the fact the region cannot be reached without the sanity check passing. The autobuilder reported it as missaligned code which is kind of true as well.
2015-05-02 11:05 [PATCH] staging:iio:light: Add some missing brackets to make sure code works as intended. Note this is not a bug due to the fact the region cannot be reached without the sanity check passing. The autobuilder reported it as missaligned code which is kind of true as well Jonathan Cameron
@ 2015-05-02 18:54 ` Daniel Baluta
2015-05-03 19:03 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Baluta @ 2015-05-02 18:54 UTC (permalink / raw)
To: Jonathan Cameron; +Cc: linux-iio@vger.kernel.org, Roberta Dobrescu
This looks good to me. Anyhow, we need a newline somewhere in the
commit subject.
On Sat, May 2, 2015 at 2:05 PM, Jonathan Cameron <jic23@kernel.org> wrote:
> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
> Cc: Roberta Dobrescu <roberta.dobrescu@gmail.com>
> ---
> drivers/staging/iio/light/isl29018.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
> index 08ca9a4172e3..e646c5d24004 100644
> --- a/drivers/staging/iio/light/isl29018.c
> +++ b/drivers/staging/iio/light/isl29018.c
> @@ -369,12 +369,13 @@ static int isl29018_write_raw(struct iio_dev *indio_dev,
> }
> break;
> case IIO_CHAN_INFO_INT_TIME:
> - if (chan->type == IIO_LIGHT)
> + if (chan->type == IIO_LIGHT) {
> if (val != 0) {
> mutex_unlock(&chip->lock);
> return -EINVAL;
> }
> ret = isl29018_set_integration_time(chip, val2);
> + }
> break;
> case IIO_CHAN_INFO_SCALE:
> if (chan->type == IIO_LIGHT)
> --
> 2.3.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging:iio:light: Add some missing brackets to make sure code works as intended. Note this is not a bug due to the fact the region cannot be reached without the sanity check passing. The autobuilder reported it as missaligned code which is kind of true as well.
2015-05-02 18:54 ` Daniel Baluta
@ 2015-05-03 19:03 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2015-05-03 19:03 UTC (permalink / raw)
To: Daniel Baluta; +Cc: linux-iio@vger.kernel.org, Roberta Dobrescu
On 02/05/15 19:54, Daniel Baluta wrote:
> This looks good to me. Anyhow, we need a newline somewhere in the
> commit subject.
Yeah, I messed that up. Anyhow, applied with an appropriate new line
to the togreg branch of iio.git.
Thanks,
J
>
> On Sat, May 2, 2015 at 2:05 PM, Jonathan Cameron <jic23@kernel.org> wrote:
>> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
>> Cc: Roberta Dobrescu <roberta.dobrescu@gmail.com>
>> ---
>> drivers/staging/iio/light/isl29018.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
>> index 08ca9a4172e3..e646c5d24004 100644
>> --- a/drivers/staging/iio/light/isl29018.c
>> +++ b/drivers/staging/iio/light/isl29018.c
>> @@ -369,12 +369,13 @@ static int isl29018_write_raw(struct iio_dev *indio_dev,
>> }
>> break;
>> case IIO_CHAN_INFO_INT_TIME:
>> - if (chan->type == IIO_LIGHT)
>> + if (chan->type == IIO_LIGHT) {
>> if (val != 0) {
>> mutex_unlock(&chip->lock);
>> return -EINVAL;
>> }
>> ret = isl29018_set_integration_time(chip, val2);
>> + }
>> break;
>> case IIO_CHAN_INFO_SCALE:
>> if (chan->type == IIO_LIGHT)
>> --
>> 2.3.5
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-03 19:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-02 11:05 [PATCH] staging:iio:light: Add some missing brackets to make sure code works as intended. Note this is not a bug due to the fact the region cannot be reached without the sanity check passing. The autobuilder reported it as missaligned code which is kind of true as well Jonathan Cameron
2015-05-02 18:54 ` Daniel Baluta
2015-05-03 19:03 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox