IIO_TRIGGER_VALIDATE(9)

NAME
iio_trigger_validate_own_device - Check if a trigger and IIO device belong to the same device

SYNOPSIS

int iio_trigger_validate_own_device(struct iio_trigger * trig, struct iio_dev * indio_dev);

ARGUMENTS

trig
    The IIO trigger to check

indio_dev
    the IIO device to check

DESCRIPTION

This function can be used as the validate_device callback for triggers that can only be attached to their own device.

RETURN

0 if both the trigger and the IIO device belong to the same device, -EINVAL otherwise.

AUTHOR

Daniel Baluta <daniel.baluta@intel.com>
    Author.

COPYRIGHT