From: Hartmut Knaack <knaack.h@gmx.de>
To: Daniel Baluta <daniel.baluta@intel.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Peter Meerwald <pmeerw@pmeerw.net>,
Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@linux.intel.com>
Subject: Re: [PATCH 2/2] iio:light:ltr501: fix variable in ltr501_init
Date: Mon, 29 Jun 2015 11:51:21 +0200 [thread overview]
Message-ID: <55911519.3060103@gmx.de> (raw)
In-Reply-To: <CAEnQRZA=P=HOAzzN=Q3uifPxGL0u58F5uk5RHo-vGKERM3Kn=Q@mail.gmail.com>
Daniel Baluta schrieb am 29.06.2015 um 09:57:
> On Sun, Jun 28, 2015 at 1:31 PM, Hartmut Knaack <knaack.h@gmx.de> wrote:
>> When filling data->als_contr, the register content read into status needs
>> to be used, instead of the return status value of regmap_read.
>>
>> This fixes: 8592a7eefa540303dd9e60fa49340d09ca9376b4
>> "iio: ltr501: Add support for ltr559 chip"
>>
>
> Ditto, as per previous patch:
>
> Fixes: 8592a7eefa540 ("iio: ltr501: Add support for ltr559 chip")
>
> Also, I'm pretty sure that checkpatch.pl should have warned you about
> this.
>
Unfortunately it doesn't. But I will keep it in mind.
>> Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
>> ---
>> drivers/iio/light/ltr501.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c
>> index 1ef7d37..b5a0e66 100644
>> --- a/drivers/iio/light/ltr501.c
>> +++ b/drivers/iio/light/ltr501.c
>> @@ -1302,7 +1302,7 @@ static int ltr501_init(struct ltr501_data *data)
>> if (ret < 0)
>> return ret;
>>
>> - data->als_contr = ret | data->chip_info->als_mode_active;
>> + data->als_contr = status | data->chip_info->als_mode_active;
>>
>> ret = regmap_read(data->regmap, LTR501_PS_CONTR, &status);
>> if (ret < 0)
>> --
>> 2.3.6
>>
>> --
>> 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
>
prev parent reply other threads:[~2015-06-29 9:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1435487041.git.knaack.h@gmx.de>
2015-06-28 10:31 ` [PATCH 1/2] iio:light:ltr501: fix regmap dependency Hartmut Knaack
2015-06-29 7:56 ` Daniel Baluta
2015-07-05 13:16 ` Jonathan Cameron
2015-06-28 10:31 ` [PATCH 2/2] iio:light:ltr501: fix variable in ltr501_init Hartmut Knaack
2015-06-29 7:57 ` Daniel Baluta
2015-06-29 9:51 ` Hartmut Knaack [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=55911519.3060103@gmx.de \
--to=knaack.h@gmx.de \
--cc=daniel.baluta@intel.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
--cc=sathyanarayanan.kuppuswamy@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.