From: Octavian Purdila Date: Sat, 31 Jan 2015 00:00:05 +0000 (+0200) Subject: iio: bmc150: exit early if event / trigger state is not changed X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~102^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14ee64f438b8e85d1c78939d301956d9a775cc9a;p=pandora-kernel.git 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 Acked-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed