public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Daniel Baluta <daniel.baluta@gmail.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	Roberta Dobrescu <roberta.dobrescu@gmail.com>
Subject: 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.
Date: Sun, 03 May 2015 20:03:15 +0100	[thread overview]
Message-ID: <554670F3.5080704@kernel.org> (raw)
In-Reply-To: <CAEnQRZAHSqssqmqSWSm4NYB5854um28MjsFPoBC5DkrJRySVzA@mail.gmail.com>

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
> 


      reply	other threads:[~2015-05-03 19:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=554670F3.5080704@kernel.org \
    --to=jic23@kernel.org \
    --cc=daniel.baluta@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=roberta.dobrescu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox