Skip to content

Commit

Permalink
staging:iio:light:tsl2563 missing setting of id in get id function.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maxin B. John authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent a7e3bd6 commit 22dc09c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/iio/light/tsl2563.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ static int tsl2563_read_id(struct tsl2563_chip *chip, u8 *id)
if (ret < 0)
return ret;

*id = ret;

return 0;
}

Expand Down

0 comments on commit 22dc09c

Please sign in to comment.