iio: accel: kxcjk-1013: error handling when set mode fails
authorIrina Tirdea <irina.tirdea@intel.com>
Wed, 10 Dec 2014 16:23:53 +0000 (18:23 +0200)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:28:35 +0000 (12:28 +0000)
commitfbd123e913ed25ec861ce3be10725b5beb27ab48
tree284b0e690424904ad4dc5c43b130b69b0fcf2eb7
parent374956600ecbedf5ca29c76bde114160eb805091
iio: accel: kxcjk-1013: error handling when set mode fails

If there is an error in set mode at runtime resume, reset the state of
the runtime usage count.

If there is an error in set mode at runtime suspend, make sure the framework
retries to suspend the device.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/kxcjk-1013.c