iio: isl29018: fix to return error or 0 in isl29018_write_raw()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 8 Nov 2012 09:05:00 +0000 (09:05 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 19 Nov 2012 22:22:04 +0000 (22:22 +0000)
commit6dc973d4fd29860cf648a56510b8a14410d0451f
tree3b920ffa5fe4da092e3c99c3070e4c64622e8f44
parent50d69b5184169caeb85e082f627200da9b0e1677
iio: isl29018: fix to return error or 0 in isl29018_write_raw()

We had assigned the return value to 'ret' but ignored it when
return from isl29018_write_raw(), it's better to return 'ret'
instead of 0.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/isl29018.c
This page took 0.025839 seconds and 5 git commands to generate.