summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_selftest.c
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@intel.com>2014-12-23 14:22:26 +0100
committerJonathan Cameron <jic23@kernel.org>2015-01-05 19:59:52 +0100
commit28ff344e1d0a08d60149b859d47e1610fa5b622b (patch)
tree603ebf71ae9b3f13b96ea7ab00cdf5f039fd6a34 /kernel/trace/trace_selftest.c
parentiio: imu: kmx61: Don't ignore kmx61_set_power_state errors (diff)
downloadlinux-28ff344e1d0a08d60149b859d47e1610fa5b622b.tar.xz
linux-28ff344e1d0a08d60149b859d47e1610fa5b622b.zip
iio: imu: kmx61: Enhance error handling
This fixes parts of kmx61 error handling to make code easier to read and to be more consistent with IIO coding conventions: * prefer as single point for error handling instead of duplicating code for each function * directly return a value from a case branch instead of breaking * fix error message for writing REG_CTRL1 Also, add separate error paths for kmx61_trigger_setup/iio_triggered_buffer_setup calls. Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'kernel/trace/trace_selftest.c')
0 files changed, 0 insertions, 0 deletions