summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/iio_core_trigger.h
diff options
context:
space:
mode:
authorJonathan Cameron2011-10-26 18:27:38 +0200
committerGreg Kroah-Hartman2011-11-27 01:30:30 +0100
commit67be8e32c9f98453faeb9a992a47bd5910c9fb2e (patch)
tree1e29321186c4b4416695587d6bb031711ff52a3e /drivers/staging/iio/iio_core_trigger.h
parentstaging:iio:light:tsl2563 missing setting of id in get id function. (diff)
downloadkernel-qcow2-linux-67be8e32c9f98453faeb9a992a47bd5910c9fb2e.tar.gz
kernel-qcow2-linux-67be8e32c9f98453faeb9a992a47bd5910c9fb2e.tar.xz
kernel-qcow2-linux-67be8e32c9f98453faeb9a992a47bd5910c9fb2e.zip
staging:iio:triggers Remove unecessary existence checks and return val
Postenable and predisable are called via buffer->ops so don't need to check if buffer exists. The return value of iio_device_register_trigger_consumer is always zero and it isn't checked anyway so get rid of it. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/iio_core_trigger.h')
-rw-r--r--drivers/staging/iio/iio_core_trigger.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/iio/iio_core_trigger.h b/drivers/staging/iio/iio_core_trigger.h
index 523c288b776b..6f7c56fcbe78 100644
--- a/drivers/staging/iio/iio_core_trigger.h
+++ b/drivers/staging/iio/iio_core_trigger.h
@@ -13,8 +13,7 @@
* iio_device_register_trigger_consumer() - set up an iio_dev to use triggers
* @indio_dev: iio_dev associated with the device that will consume the trigger
**/
-
-int iio_device_register_trigger_consumer(struct iio_dev *indio_dev);
+void iio_device_register_trigger_consumer(struct iio_dev *indio_dev);
/**
* iio_device_unregister_trigger_consumer() - reverse the registration process