From: Jonathan Cameron <jic23@kernel.org>
To: Daniel Baluta <daniel.baluta@intel.com>,
Roberta Dobrescu <roberta.dobrescu@gmail.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
"octavian.purdila@intel.com" <octavian.purdila@intel.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Michael.Hennerich@analog.com, Hartmut Knaack <knaack.h@gmx.de>,
Peter Meerwald <pmeerw@pmeerw.net>
Subject: Re: [PATCH] iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0
Date: Fri, 16 Jan 2015 22:46:27 +0000 [thread overview]
Message-ID: <54B994C3.8000509@kernel.org> (raw)
In-Reply-To: <CAEnQRZALuzB2rudR8QeOFeA4Bk5c4SgqgCHGGonfprOrpfMfFA@mail.gmail.com>
On 16/01/15 09:36, Daniel Baluta wrote:
> On Fri, Jan 16, 2015 at 12:25 AM, Roberta Dobrescu
> <roberta.dobrescu@gmail.com> wrote:
>> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
>
> Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Applied to the togreg branch of iio.git - initially to be pushed out
as testing when I remember and am not on a train with no (free) internet.
Mind you this email will probably send at the same time :)
J
>
>> ---
>> drivers/iio/light/hid-sensor-als.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c
>> index a5283d7..e97101d 100644
>> --- a/drivers/iio/light/hid-sensor-als.c
>> +++ b/drivers/iio/light/hid-sensor-als.c
>> @@ -85,7 +85,7 @@ static int als_read_raw(struct iio_dev *indio_dev,
>> *val = 0;
>> *val2 = 0;
>> switch (mask) {
>> - case 0:
>> + case IIO_CHAN_INFO_RAW:
>> switch (chan->scan_index) {
>> case CHANNEL_SCAN_INDEX_ILLUM:
>> report_id = als_state->als_illum.report_id;
>> --
>> 1.9.1
>>
>> --
>> 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-01-17 13:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 22:25 [PATCH] iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0 Roberta Dobrescu
2015-01-16 9:36 ` Daniel Baluta
2015-01-16 22:46 ` 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=54B994C3.8000509@kernel.org \
--to=jic23@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=daniel.baluta@intel.com \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=octavian.purdila@intel.com \
--cc=pmeerw@pmeerw.net \
--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 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.