iio:max1027: Use iio_trigger_validate_own_device() helper
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 23 Sep 2016 15:19:43 +0000 (17:19 +0200)
committerJonathan Cameron <jic23@kernel.org>
Tue, 27 Sep 2016 19:33:00 +0000 (20:33 +0100)
commitbea15d5139b9eef3ca368b95c4dbd6621bff9a5c
tree68667378339b4344141589d7de8d9ed55442e176
parent19808e0467a05ee4a3008f9d586ce32d5b34aba8
iio:max1027: Use 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/adc/max1027.c