Skip to contentSkip to conversation

iio: light: tcs3414: Fix misindented lines

PATCH In review Roberta Dobrescu 3 participants 3 messages Jan 15, 2015 – Jan 17, 2015 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: light: tcs3414: Fix misindented lines

---
 drivers/iio/light/tcs3414.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/light/tcs3414.c +2 -2
index a9e449b..71c2bde 100644
@@ -149,8 +149,8 @@ static int tcs3414_read_raw(struct iio_dev *indio_dev,
 		*val = ret;
 		return IIO_VAL_INT;
 	case IIO_CHAN_INFO_SCALE:
-	i = (data->gain & TCS3414_GAIN_MASK) >> TCS3414_GAIN_SHIFT;
-	*val = tcs3414_scales[i][0];
+		i = (data->gain & TCS3414_GAIN_MASK) >> TCS3414_GAIN_SHIFT;
+		*val = tcs3414_scales[i][0];
 		*val2 = tcs3414_scales[i][1];
 		return IIO_VAL_INT_PLUS_MICRO;
 	case IIO_CHAN_INFO_INT_TIME:
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Roberta Dobrescu
Quoted 26 lines
---
 drivers/iio/light/tcs3414.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/light/tcs3414.c +2 -3
index a9e449b..71c2bde 100644
@@ -149,8 +149,8 @@ static int tcs3414_read_raw(struct iio_dev *indio_dev,
                *val = ret;
                return IIO_VAL_INT;
        case IIO_CHAN_INFO_SCALE:
-       i = (data->gain & TCS3414_GAIN_MASK) >> TCS3414_GAIN_SHIFT;
-       *val = tcs3414_scales[i][0];
+               i = (data->gain & TCS3414_GAIN_MASK) >> TCS3414_GAIN_SHIFT;
+               *val = tcs3414_scales[i][0];
                *val2 = tcs3414_scales[i][1];
                return IIO_VAL_INT_PLUS_MICRO;
        case IIO_CHAN_INFO_INT_TIME:
--

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
#2 lore raw
Quoted 5 lines · Daniel Baluta
Quoted 1 line · Roberta Dobrescu

Applied to a branch that will get pushed out as testing and at probably then rebased so I'm not lagging quite so far behind mainline...

Anyhow, it'll hit togreg sometime soonish!

Thanks,

Jonathan

Quoted 27 lines
Quoted 27 lines
---
 drivers/iio/light/tcs3414.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/light/tcs3414.c +2 -3
index a9e449b..71c2bde 100644
@@ -149,8 +149,8 @@ static int tcs3414_read_raw(struct iio_dev *indio_dev,
                *val = ret;
                return IIO_VAL_INT;
        case IIO_CHAN_INFO_SCALE:
-       i = (data->gain & TCS3414_GAIN_MASK) >> TCS3414_GAIN_SHIFT;
-       *val = tcs3414_scales[i][0];
+               i = (data->gain & TCS3414_GAIN_MASK) >> TCS3414_GAIN_SHIFT;
+               *val = tcs3414_scales[i][0];
                *val2 = tcs3414_scales[i][1];
                return IIO_VAL_INT_PLUS_MICRO;
        case IIO_CHAN_INFO_INT_TIME:
--

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