driver: kionix: Add check for either KXCJ9 or KX022
For the accel_kionix.c module to work, either the KXCJ9 or KX022 configs
must be defined.
BRANCH=none
TEST=make buildall
/* Number of times to attempt to enable sensor before giving up. */
#define SENSOR_ENABLE_ATTEMPTS 3
+#if !defined(CONFIG_ACCEL_KXCJ9) && !defined(CONFIG_ACCEL_KX022)
+#error "Must use either KXCJ9 or KX022"
+#endif
+
#if defined(CONFIG_ACCEL_KXCJ9) && !defined(CONFIG_ACCEL_KX022)
#define V(s_) 1
#elif defined(CONFIG_ACCEL_KX022) && !defined(CONFIG_ACCEL_KXCJ9)
