From deb02fc574909973786ec6e5ac4b5bced683a2e2 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Fri, 8 Oct 2010 12:14:04 +0100 Subject: [PATCH] staging: iio: accel remove old event codes Signed-off-by: Joanthan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/staging/iio/accel/accel.h | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/staging/iio/accel/accel.h b/drivers/staging/iio/accel/accel.h index 01e930201aa8..3b6be2eb23e2 100644 --- a/drivers/staging/iio/accel/accel.h +++ b/drivers/staging/iio/accel/accel.h @@ -119,83 +119,56 @@ /** * IIO_EVENT_CODE_ACCEL_X_HIGH - event code for x axis high accel threshold **/ -#define IIO_EVENT_CODE_ACCEL_X_HIGH IIO_EVENT_CODE_ACCEL_BASE - #define IIO_EVENT_ATTR_ACCEL_Y_HIGH(_show, _store, _mask, _handler) \ IIO_EVENT_ATTR(accel_y_high, _show, _store, _mask, _handler) #define IIO_EVENT_ATTR_ACCEL_Y_HIGH_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_y_high, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_Y_HIGH (IIO_EVENT_CODE_ACCEL_BASE + 1) - #define IIO_EVENT_ATTR_ACCEL_Z_HIGH(_show, _store, _mask, _handler) \ IIO_EVENT_ATTR(accel_z_high, _show, _store, _mask, _handler) #define IIO_EVENT_ATTR_ACCEL_Z_HIGH_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_z_high, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_Z_HIGH (IIO_EVENT_CODE_ACCEL_BASE + 2) - #define IIO_EVENT_ATTR_ACCEL_X_LOW(_show, _store, _mask, _handler) \ IIO_EVENT_ATTR(accel_x_low, _show, _store, _mask, _handler) #define IIO_EVENT_ATTR_ACCEL_X_LOW_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_x_low, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_X_LOW (IIO_EVENT_CODE_ACCEL_BASE + 3) - #define IIO_EVENT_ATTR_ACCEL_Y_LOW(_show, _store, _mask, _handler) \ IIO_EVENT_ATTR(accel_y_low, _show, _store, _mask, _handler) #define IIO_EVENT_ATTR_ACCEL_Y_LOW_SH(_evlist, _show, _store, _mask)\ IIO_EVENT_ATTR_SH(accel_y_low, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_Y_LOW (IIO_EVENT_CODE_ACCEL_BASE + 4) - #define IIO_EVENT_ATTR_ACCEL_Z_LOW(_show, _store, _mask, _handler) \ IIO_EVENT_ATTR(accel_z_low, _show, _store, _mask, _handler) #define IIO_EVENT_ATTR_ACCEL_Z_LOW_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_z_low, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_Z_LOW (IIO_EVENT_CODE_ACCEL_BASE + 5) - #define IIO_EVENT_ATTR_FREE_FALL_DETECT(_show, _store, _mask, _handler) \ IIO_EVENT_ATTR(free_fall, _show, _store, _mask, _handler) #define IIO_EVENT_ATTR_FREE_FALL_DETECT_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(free_fall, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_FREE_FALL (IIO_EVENT_CODE_ACCEL_BASE + 6) - - #define IIO_EVENT_ATTR_ACCEL_X_ROC_HIGH_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_x_roc_high, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_X_ROC_HIGH (IIO_EVENT_CODE_ACCEL_BASE + 10) - #define IIO_EVENT_ATTR_ACCEL_X_ROC_LOW_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_x_roc_low, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_X_ROC_LOW (IIO_EVENT_CODE_ACCEL_BASE + 11) - #define IIO_EVENT_ATTR_ACCEL_Y_ROC_HIGH_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_y_roc_high, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_Y_ROC_HIGH (IIO_EVENT_CODE_ACCEL_BASE + 12) - #define IIO_EVENT_ATTR_ACCEL_Y_ROC_LOW_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_y_roc_low, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_Y_ROC_LOW (IIO_EVENT_CODE_ACCEL_BASE + 13) - #define IIO_EVENT_ATTR_ACCEL_Z_ROC_HIGH_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_z_roc_high, _evlist, _show, _store, _mask) -#define IIO_EVENT_CODE_ACCEL_Z_ROC_HIGH (IIO_EVENT_CODE_ACCEL_BASE + 14) - #define IIO_EVENT_ATTR_ACCEL_Z_ROC_LOW_SH(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(accel_z_roc_low, _evlist, _show, _store, _mask) - -#define IIO_EVENT_CODE_ACCEL_Z_ROC_LOW (IIO_EVENT_CODE_ACCEL_BASE + 15) -- 2.34.1