On 11/08/2012 09:05 AM, Wei Yongjun wrote: > From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx> > > 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) > Thanks - merged to togreg branch of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git > Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx> > --- > drivers/staging/iio/light/isl29018.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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, > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel