iio: trigger: Add filter callback
authorMichael Hennerich <michael.hennerich@analog.com>
Mon, 27 Jun 2011 12:07:09 +0000 (13:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 21:39:33 +0000 (14:39 -0700)
commit43a4360ea8f075540cb7c1efc8d643b4261eb901
treee380d8c5563b32f13b7c7b06a224c32998a199d3
parent03e1672a70be991a9e84d67b2d2143313938e1a8
iio: trigger: Add filter callback

Allow devices to reject triggers and vice versa.

Changes since V1:
Added kernel-doc
Moved callback into iio_info
Changed function naming
Revised return value passing
Add forward declaration to avoid warnings

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/iio.h
drivers/staging/iio/industrialio-trigger.c
drivers/staging/iio/trigger.h