linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0
@ 2015-01-15 22:25 Roberta Dobrescu
  2015-01-16  9:36 ` Daniel Baluta
  0 siblings, 1 reply; 3+ messages in thread
From: Roberta Dobrescu @ 2015-01-15 22:25 UTC (permalink / raw)
  To: linux-iio, jic23
  Cc: octavian.purdila, daniel.baluta, lars, Michael.Hennerich,
	knaack.h, pmeerw, Roberta Dobrescu

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Baluta @ 2015-01-16  9:36 UTC (permalink / raw)
  To: Roberta Dobrescu
  Cc: linux-iio@vger.kernel.org, Jonathan Cameron,
	octavian.purdila@intel.com, Daniel Baluta, Lars-Peter Clausen,
	Michael.Hennerich, Hartmut Knaack, Peter Meerwald

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>

> ---
>  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0
  2015-01-16  9:36 ` Daniel Baluta
@ 2015-01-16 22:46   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2015-01-16 22:46 UTC (permalink / raw)
  To: Daniel Baluta, Roberta Dobrescu
  Cc: linux-iio@vger.kernel.org, octavian.purdila@intel.com,
	Lars-Peter Clausen, Michael.Hennerich, Hartmut Knaack,
	Peter Meerwald

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-17 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).