iio:trigger: Remove necessity to have a trig->ops structure.
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:25:45 +0000 (17:25 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 20:20:28 +0000 (21:20 +0100)
commit04581681df3048b7819c25419de1ea73a2832808
treef8ecbf9c8bdd7d87e99a269ae9610cdf71e6e250
parent035c70aeb64b861aa88a666c61fda8b2ae49aeae
iio:trigger: Remove necessity to have a trig->ops structure.

There are a few cases where none of the callbacks are supplied and the
ops structure purely existed to provide the driver module.

Given that is done differently now, we don't need to have a trig_ops structure.
Allow for it not being there required a few additional sanity checks when
trying check if particular callbacks are set.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/iio/industrialio-trigger.c