diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-11-08 09:05:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-19 22:22:04 (GMT) |
commit | 6dc973d4fd29860cf648a56510b8a14410d0451f (patch) | |
tree | 3b920ffa5fe4da092e3c99c3070e4c64622e8f44 /drivers/staging/iio/light/isl29018.c | |
parent | 50d69b5184169caeb85e082f627200da9b0e1677 (diff) | |
download | linux-6dc973d4fd29860cf648a56510b8a14410d0451f.tar.xz |
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>
Diffstat (limited to 'drivers/staging/iio/light/isl29018.c')
-rw-r--r-- | drivers/staging/iio/light/isl29018.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c index 3b03f6f..1d5b294 100644 --- a/drivers/staging/iio/light/isl29018.c +++ b/drivers/staging/iio/light/isl29018.c @@ -356,7 +356,7 @@ static int isl29018_write_raw(struct iio_dev *indio_dev, } mutex_unlock(&chip->lock); - return 0; + return ret; } static int isl29018_read_raw(struct iio_dev *indio_dev, |