From: Maxin B. John Date: Wed, 26 Oct 2011 16:27:37 +0000 (+0100) Subject: staging:iio:light:tsl2563 missing setting of id in get id function. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=22dc09cafda0d9b31e8f07539535582fb343baf8;p=openwrt%2Fstaging%2Fblogic.git staging:iio:light:tsl2563 missing setting of id in get id function. Signed-off-by: Maxin B. John Reviewed-by: Dan Carpenter Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/light/tsl2563.c b/drivers/staging/iio/light/tsl2563.c index be99925f566b..6a1794508f67 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; }