staging:iio: Add missing event code extract macros
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 13 Feb 2012 09:25:33 +0000 (10:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2012 04:10:32 +0000 (20:10 -0800)
commitf30f929fcd6c8d2cae8ec4396534337886e414c0
treedf735b3731ba87d8e6f945981cad7d6af730480d
parentda36716042d90a214dc80ea85c71b80c23889832
staging:iio: Add missing event code extract macros

Add macros for extracting whether the event is for a differential channel and
the second channel number from the event code. These were the only two fields
which did not have such an macro yet.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/events.h