commit | 14ee64f438b8e85d1c78939d301956d9a775cc9a | [log] [tgz] |
---|---|---|
author | Octavian Purdila <octavian.purdila@intel.com> | Sat Jan 31 02:00:05 2015 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Feb 08 10:40:25 2015 +0000 |
tree | e73c5e7181cd6f60aeadcb5abad2345f338fee2c | |
parent | 8e22f477e1432ace88b762f5f66e0f96631a1462 [diff] |
iio: bmc150: exit early if event / trigger state is not changed Previous of this patch the check was only done if we enabled the event and it was already enabled. We can do the same if the event is disabled and we want to disable it. The patch also adds the same check on the trigger code. Signed-off-by: Octavian Purdila <octavian.purdila@intel.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>