diff --git a/drivers/staging/iio/events.h b/drivers/staging/iio/events.h index 416800e23651fb9cec35d27bacc41500e9bf67f2..c25f0e3c92e9f6811219c66d4edb9ebad5b726db 100644 --- a/drivers/staging/iio/events.h +++ b/drivers/staging/iio/events.h @@ -97,7 +97,9 @@ enum iio_event_direction { /* Event code number extraction depends on which type of event we have. * Perhaps review this function in the future*/ #define IIO_EVENT_CODE_EXTRACT_CHAN(mask) ((__s16)(mask & 0xFFFF)) +#define IIO_EVENT_CODE_EXTRACT_CHAN2(mask) ((__s16)(((mask) >> 16) & 0xFFFF)) #define IIO_EVENT_CODE_EXTRACT_MODIFIER(mask) ((mask >> 40) & 0xFF) +#define IIO_EVENT_CODE_EXTRACT_DIFF(mask) (((mask) >> 55) & 0x1) #endif