[PATCH] staging:iio:light:tsl2563 missing setting of id in get idfunction.

From: Dan Carpenter
Date: Mon Oct 24 2011 - 04:46:32 EST


Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxx>
Reported-by: Maxin B. John <maxin.john@xxxxxxxxx>
---
drivers/staging/iio/light/tsl2563.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/iio/light/tsl2563.c b/drivers/staging/iio/light/tsl2563.c
index 5cee5ca..45d04a1 100644
--- a/drivers/staging/iio/light/tsl2563.c
+++ b/drivers/staging/iio/light/tsl2563.c
@@ -227,6 +227,8 @@ static int tsl2563_read_id(struct tsl2563_chip *chip, u8 *id)
if (ret < 0)
return ret;

+ *id = ret;
+
return 0;
}

--
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/