Re: [PATCH] iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16/01/15 09:36, Daniel Baluta wrote:
> On Fri, Jan 16, 2015 at 12:25 AM, Roberta Dobrescu
> <roberta.dobrescu@xxxxxxxxx> wrote:
>> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@xxxxxxxxx>
> 
> Reviewed-by: Daniel Baluta <daniel.baluta@xxxxxxxxx>
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@xxxxxxxxxxxxxxx
>> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux