From: Hartmut Knaack Date: Sun, 28 Jun 2015 10:31:53 +0000 (+0200) Subject: iio:light:ltr501: fix variable in ltr501_init X-Git-Tag: omap-for-v4.3/fixes-merge-window~229^2~2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5919a0839bd65252f7306a0ee4879e697e00cab1;p=pandora-kernel.git iio:light:ltr501: fix variable in ltr501_init When filling data->als_contr, the register content read into status needs to be used, instead of the return status value of regmap_read. Fixes: 8592a7eefa540 ("iio: ltr501: Add support for ltr559 chip") Signed-off-by: Hartmut Knaack Acked-by: Daniel Baluta Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed