Commit 22dc09ca authored by Maxin B. John's avatar Maxin B. John Committed by Greg Kroah-Hartman

staging:iio:light:tsl2563 missing setting of id in get id function.

Signed-off-by: default avatarMaxin B. John <maxin.john@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a7e3bd66
...@@ -226,6 +226,8 @@ static int tsl2563_read_id(struct tsl2563_chip *chip, u8 *id) ...@@ -226,6 +226,8 @@ static int tsl2563_read_id(struct tsl2563_chip *chip, u8 *id)
if (ret < 0) if (ret < 0)
return ret; return ret;
*id = ret;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment