devm_iio_trigger_register (9) - Linux Manuals
devm_iio_trigger_register: Resource-managed iio_trigger_register
NAME
devm_iio_trigger_register - Resource-managed iio_trigger_register
SYNOPSIS
-
int devm_iio_trigger_register(struct device
* dev, struct iio_trigger* trig_info);
ARGUMENTS
dev
-
- device this trigger was allocated for
trig_info
- trigger to register
DESCRIPTION
Managed iio_trigger_register. The IIO trigger registered with this function is automatically unregistered on driver detach. This function calls iio_trigger_register internally. Refer to that function for more information.
If an iio_trigger registered with this function needs to be unregistered separately, devm_iio_trigger_unregister must be used.
RETURN
0 on success, negative error number on failure.
AUTHOR
Daniel Baluta <daniel.baluta [at] intel.com>
- Author.
COPYRIGHT