iio: accel: bmc150: Error handling when mode set fails
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 11 Oct 2014 03:35:31 +0000 (20:35 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 16 Nov 2014 20:22:34 +0000 (20:22 +0000)
commitaaeecd80440bc5e06de7d2b741cd403325d8ca7a
tree174f39c8178256d4b51c21def116ca802a2cfed7
parent6896ab3a8cfe383cc0c98790b62245a84c6335f7
iio: accel: bmc150: Error handling when mode set fails

When mode set fails due to some transient failures, it will atleast
reset the state of runtime usage count and also let the runtime
suspend retry from the driver framework.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bmc150-accel.c