iio: gyro: bmg160: Error handling when mode set fails
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 11 Oct 2014 03:33:25 +0000 (20:33 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 16 Nov 2014 20:19:18 +0000 (20:19 +0000)
commit10bef28973071266e85fe7ea50e08ce8f46dc1ca
tree9483de9f791c8cf41bd86b5770af350f966bf801
parentfbbba1f89eb68e7d07707e104193d56de8e37fe5
iio: gyro: bmg160: 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/gyro/bmg160.c