staging:iio: Add infrastructure for irq_chip based triggers
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 18 May 2011 13:41:18 +0000 (14:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 19 May 2011 23:14:48 +0000 (16:14 -0700)
commitd96d1337e339521a2bd56dc9d51fef140c1a49ee
treed3ad4b444c9d25b46f4183b59abee4d2003f4c54
parent461be806744d0c83babcfa5d63993b43bd801c46
staging:iio: Add infrastructure for irq_chip based triggers

V3: Get rid of separate interrupt pool. This is well handled
    by irq_get_descs and irq_free_descs.  Two functions I simply
    wasn't aware of previously.  Thus the allocation for a given
    trigger is now handled by core code rather than us reinventing
    the wheel.

V2: Stop silly name duplication.
    Move pool handling to industrialio-trigger as that is the only user.
    Changed over to using irq_modify_status rather than the arm
    specific set_irq_flags as per Thomas Gleixner's suggestion.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/Kconfig
drivers/staging/iio/industrialio-trigger.c
drivers/staging/iio/trigger.h