summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@intel.com>2014-12-23 15:22:26 +0200
committerJonathan Cameron <jic23@kernel.org>2015-01-05 18:59:52 +0000
commit28ff344e1d0a08d60149b859d47e1610fa5b622b (patch)
tree603ebf71ae9b3f13b96ea7ab00cdf5f039fd6a34 /drivers/base
parenta3da4fa301ae60aac688ca320fb8b46a053d6d25 (diff)
downloadlinux-28ff344e1d0a08d60149b859d47e1610fa5b622b.tar.bz2
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 'drivers/base')
0 files changed, 0 insertions, 0 deletions