]> git.baikalelectronics.ru Git - kernel.git/commit
iio: afe4404: Remove no-op trigger ops
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 31 Oct 2021 14:21:26 +0000 (15:21 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 17 Nov 2021 17:51:37 +0000 (17:51 +0000)
commit642b058a9dd8b7c1b107674f465fc28276713dc7
treeb82263fc5af72103d3e148557d74cbd44b8665af
parent43a20a371f69bfafd7c56db29cf4e7d6dcb777d1
iio: afe4404: 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-5-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/health/afe4404.c