diff options
author | Jonathan Cameron | 2011-08-24 18:28:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-08-24 23:23:43 +0200 |
commit | cb6c89a094df3823a1797b880e5dfda2fbfcd584 (patch) | |
tree | a5216e2390b36958efd28923742c2f9bca4d691b /drivers/staging/iio/iio_core_trigger.h | |
parent | staging:iio: spit trigger.h into provider and consumer parts. (diff) | |
download | kernel-qcow2-linux-cb6c89a094df3823a1797b880e5dfda2fbfcd584.tar.gz kernel-qcow2-linux-cb6c89a094df3823a1797b880e5dfda2fbfcd584.tar.xz kernel-qcow2-linux-cb6c89a094df3823a1797b880e5dfda2fbfcd584.zip |
staging:iio:trigger core. Trivial code cleanups.
Stop exporting functions only intended for core usage.
Return void from function which can never return anything other than 0.
Trivial stype cleanups.
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.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/iio/iio_core_trigger.h b/drivers/staging/iio/iio_core_trigger.h index 9d52d9637777..3e5195a82bca 100644 --- a/drivers/staging/iio/iio_core_trigger.h +++ b/drivers/staging/iio/iio_core_trigger.h @@ -19,7 +19,7 @@ int iio_device_register_trigger_consumer(struct iio_dev *dev_info); * iio_device_unregister_trigger_consumer() - reverse the registration process * @dev_info: iio_dev associated with the device that consumed the trigger **/ -int iio_device_unregister_trigger_consumer(struct iio_dev *dev_info); +void iio_device_unregister_trigger_consumer(struct iio_dev *dev_info); #else @@ -36,9 +36,8 @@ static int iio_device_register_trigger_consumer(struct iio_dev *dev_info) * iio_device_unregister_trigger_consumer() - reverse the registration process * @dev_info: iio_dev associated with the device that consumed the trigger **/ -static int iio_device_unregister_trigger_consumer(struct iio_dev *dev_info) +static void iio_device_unregister_trigger_consumer(struct iio_dev *dev_info) { - return 0; }; #endif /* CONFIG_TRIGGER_CONSUMER */ |