Skip to contentSkip to conversation

iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0

PATCH Applied Roberta Dobrescu 3 participants 3 messages Jan 15, 2015 – Jan 17, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0

---
 drivers/iio/light/hid-sensor-als.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/hid-sensor-als.c +1 -1
index a5283d7..e97101d 100644
@@ -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;
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Roberta Dobrescu
Quoted 24 lines
---
 drivers/iio/light/hid-sensor-als.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/hid-sensor-als.c +1 -2
index a5283d7..e97101d 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer Applied
#2 lore raw
Quoted 5 lines · Daniel Baluta
Quoted 1 line · Roberta Dobrescu

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

Quoted 25 lines
Quoted 25 lines
---
 drivers/iio/light/hid-sensor-als.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/hid-sensor-als.c +1 -2
index a5283d7..e97101d 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html