iio: trigger: allow immutable triggers to be assigned
authorMatt Ranostay <mranostay@gmail.com>
Sat, 3 Sep 2016 06:36:15 +0000 (23:36 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Sep 2016 14:31:55 +0000 (15:31 +0100)
commitc8cdf70890d89c07c9e890b103106d58999f0ce4
treec96f5fa74ac061a3151b1099119a584c55a18a85
parenta5c8b11a361065db028721c62aa880bfe0736aa6
iio: trigger: allow immutable triggers to be assigned

There are times when an assigned trigger to a device shouldn't ever
change after intialization.

Examples of this being used is when an provider device has a trigger
that is assigned to an ADC, which uses it populate data into a callback
buffer.

Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-trigger.c
include/linux/iio/iio.h
include/linux/iio/trigger.h