iio: triggers: Use macros to avoid boilerplate assignment of owner.
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:25:44 +0000 (17:25 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 20:18:32 +0000 (21:18 +0100)
commit035c70aeb64b861aa88a666c61fda8b2ae49aeae
tree3c646e32be0254bf61a83d1ef24c90d23abf86d9
parent63b19547cc3d96041d7bc7ab8de6292b0ebaf2c9
iio: triggers: Use macros to avoid boilerplate assignment of owner.

This trig_ops.owner assignment occurs in all trigger drivers and
can be simply automated using a macro as has been done in many
other places in the kernel.

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