diff options
| author | Brian Masney <[email protected]> | 2017-07-06 18:56:26 -0400 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2017-07-09 18:46:25 +0100 |
| commit | 0503deb820b19ffdefa5b0cc6557b2d2a7fdfc5c (patch) | |
| tree | 605747f544bc55f70f797e0ac985a58ef5f0f24d /tools/perf/scripts/python | |
| parent | 36a28e4a613bba376959a1b698ae0e1b23d52b59 (diff) | |
staging: iio: tsl2x7x: check return value from tsl2x7x_invoke_change()
The return value from tsl2x7x_invoke_change() was not checked in most
places in the driver. This patch adds the proper error checks. The
return values inside tsl2x7x_invoke_change() are now checked by
this patch as well.
Previously, if there was an error turning the chip back on, then the
driver would attempt to turn the chip off and incorrectly return
success. The code to power off the chip is removed by this patch
since we should fail fast.
Signed-off-by: Brian Masney <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions