OSDN Git Service

staging: iio: tsl2x7x: add error handling to tsl2x7x_prox_cal()
authorBrian Masney <masneyb@onstation.org>
Sun, 4 Mar 2018 01:49:38 +0000 (20:49 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 10 Mar 2018 14:44:18 +0000 (14:44 +0000)
commitdbe0f59c7cdaf3815fa6cb13cd925e9736f33388
treeb9b5cd2efa3097e7f14eb1c46bdbcb99bf3f8f29
parent6f80ff9ec8533991c854082cce1ea3e024da36a5
staging: iio: tsl2x7x: add error handling to tsl2x7x_prox_cal()

tsl2x7x_prox_cal() did not have any error checks. This patch adds
the missing error handling and ensures that any errors are reported to
user space via in_proximity0_calibrate_store().

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c