commit | 7c7a9eeaa335df03d692ad65e0767020ad1be374 | [log] [tgz] |
---|---|---|
author | Hartmut Knaack <knaack.h@gmx.de> | Thu Jul 09 23:51:31 2015 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Wed Aug 12 22:16:02 2015 +0100 |
tree | 8cdbccc583152ac8bd2e6689b78362539480e7a4 | |
parent | b465fc5499083d0b7086ae590cb852c0052622a0 [diff] |
iio:light:stk3310: add more error handling Check for the following error cases: * lower boundary for val in _write_event * return value of regmap_(field_)read * possible values for chan->type * return value of stk3310_gpio_probe Also add an error path in _probe to put the sensor back into stand-by mode in case of serious errors. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>