]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
staging:iio:light:tsl2563 missing setting of id in get id function.
authorMaxin B. John <maxin.john@gmail.com>
Wed, 26 Oct 2011 16:27:37 +0000 (17:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:30:30 +0000 (16:30 -0800)
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>
drivers/staging/iio/light/tsl2563.c

index be99925f566b2afddd27595141a00ae7667e1a60..6a1794508f67f9d29818381d98c6a91177dd2d50 100644 (file)
@@ -226,6 +226,8 @@ static int tsl2563_read_id(struct tsl2563_chip *chip, u8 *id)
        if (ret < 0)
                return ret;
 
+       *id = ret;
+
        return 0;
 }