iio: bmc150: refactor interrupt enabling
iio: bmc150: refactor interrupt enabling

This patch combines the any motion and new data interrupts function
into a single, generic, interrupt enable function. On top of this, we
can later refactor triggers to make it easier to add new triggers.

Signed-off-by: Octavian Purdila <77c06d0261d8d3a9171f87dd4ca9bbbd1924db77@intel.com>
Acked-by: Srinivas Pandruvada <910e550f1c830a1d246b6c3ed4d6ca559ba95c19@linux.intel.com>
Signed-off-by: Jonathan Cameron <09f65b71b7655725897b2fd41a09a0cefe2e1ace@kernel.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs