iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0
Subsystems (2)
PATCH 1/1 iio: light: hid-sensor-als: Use IIO_CHAN_INFO_RAW instead of hardcoded 0
Signed-off-by Roberta Dobrescu <[email protected]>
--- drivers/iio/light/hid-sensor-als.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/hid-sensor-als.c +1 -1
@@ -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
Quoted 1 line · Roberta Dobrescu
Signed-off-by Roberta Dobrescu <[email protected]>
Reviewed-by Daniel Baluta <[email protected]>
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@@ -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
Quoted 5 lines · Daniel Baluta
Quoted 1 line · Roberta Dobrescu
Signed-off-by Roberta Dobrescu <[email protected]>Reviewed-by Daniel Baluta <[email protected]>
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@@ -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