]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit22fdda76b6004df36759311674fee701cb006ef8
treedf735b3731ba87d8e6f945981cad7d6af730480d
parente39b39b4dda12159f4c4044e45fece0548140b28
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