iio:light:cm3323: pass up error value
authorHartmut Knaack <knaack.h@gmx.de>
Wed, 17 Jun 2015 22:32:01 +0000 (00:32 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 Jun 2015 13:26:36 +0000 (14:26 +0100)
commite5c97027449f235415990310e47071ec371fd46c
tree33987eb89c8113546e0e7ccde05c829ff11f663f
parent39b441bd30a9eff4b3d2cc039027037403ca5242
iio:light:cm3323: pass up error value

cm3323_get_it_bits() returns a valid error code, so pass it up in
cm3323_read_raw().

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/cm3323.c