]> git.baikalelectronics.ru Git - kernel.git/commit
iio:mma8452: Use new iio_trigger_validate_own_device() helper
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 23 Sep 2016 15:19:42 +0000 (17:19 +0200)
committerJonathan Cameron <jic23@kernel.org>
Tue, 27 Sep 2016 19:32:59 +0000 (20:32 +0100)
commit19133576064d1033fd91d5e92cdeef850aa5dc33
tree5f1f1eecd15cac1e5e6fd6d57cf83bb092091030
parent79af251e9126cb99f03a8264fffd0273976f5416
iio:mma8452: Use new iio_trigger_validate_own_device() helper

Use the new iio_trigger_validate_own_device() to verify that the trigger
can only be attached to the matching IIO device rather than using a custom
variant.

While the implementation of iio_trigger_validate_own_device() and the
custom variant and are not identical their behaviour is.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma8452.c