summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@gmail.com>2011-10-26 16:27:37 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-27 00:30:30 (GMT)
commit22dc09cafda0d9b31e8f07539535582fb343baf8 (patch)
tree997337af9a1a267e5f336a57dad48e6568824bed /drivers
parenta7e3bd669eb407b4e700a023e502bfc80d814b04 (diff)
downloadlinux-22dc09cafda0d9b31e8f07539535582fb343baf8.tar.xz
staging:iio:light:tsl2563 missing setting of id in get id function.
Signed-off-by: Maxin B. John <maxin.john@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/iio/light/tsl2563.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/iio/light/tsl2563.c b/drivers/staging/iio/light/tsl2563.c
index be99925..6a17945 100644
--- a/drivers/staging/iio/light/tsl2563.c
+++ b/drivers/staging/iio/light/tsl2563.c
@@ -226,6 +226,8 @@ static int tsl2563_read_id(struct tsl2563_chip *chip, u8 *id)
if (ret < 0)
return ret;
+ *id = ret;
+
return 0;
}