iio: interrupt-trigger: Remove no-op trigger ops
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 31 Oct 2021 14:21:22 +0000 (15:21 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 17 Nov 2021 17:51:35 +0000 (17:51 +0000)
commit2d323927519c3ffbf4b0700459333bcc5528bb96
tree17f5ef79fc23444ccb8c53ef5bd3a4db23062c39
parent3c33b7b8267f0795d74f407e97f3eeec2acb0165
iio: interrupt-trigger: Remove no-op trigger ops

The IIO core handles a trigger ops with all NULL callbacks the
same as if the trigger ops itself was NULL.

Remove the empty trigger ops from the interrupt trigger driver to slightly
reduce the boilerplate code. Object size of the driver module is also
slightly reduced.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20211031142130.20791-1-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/trigger/iio-trig-interrupt.c