From: Octavian Purdila Date: Tue, 3 Mar 2015 16:17:57 +0000 (+0200) Subject: iio: bmc150: introduce bmc150_accel_interrupt X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~102^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e825ec98d36c8c8073024c95853389a831902e5;p=pandora-kernel.git iio: bmc150: introduce bmc150_accel_interrupt Since both triggers and events can share an interrupt, add a data structure that tracks the users of an interrupt so that it enables or disables it only for the first users and respectively last user. This will allows us to easily add more events or triggers. The patch also adds an interrupt enabled counter, so that we can easily know if we need to put the device in normal mode when the resume callback is issued. Signed-off-by: Octavian Purdila Reviewed-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed