summaryrefslogtreecommitdiff
path: root/drivers/iio/trigger
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2021-10-31 15:21:22 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-11-17 17:51:35 +0000
commit2d323927519c3ffbf4b0700459333bcc5528bb96 (patch)
tree17f5ef79fc23444ccb8c53ef5bd3a4db23062c39 /drivers/iio/trigger
parent3c33b7b8267f0795d74f407e97f3eeec2acb0165 (diff)
downloadlinux-rpi-2d323927519c3ffbf4b0700459333bcc5528bb96.tar.gz
linux-rpi-2d323927519c3ffbf4b0700459333bcc5528bb96.tar.bz2
linux-rpi-2d323927519c3ffbf4b0700459333bcc5528bb96.zip
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>
Diffstat (limited to 'drivers/iio/trigger')
-rw-r--r--drivers/iio/trigger/iio-trig-interrupt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/iio/trigger/iio-trig-interrupt.c b/drivers/iio/trigger/iio-trig-interrupt.c
index f746c460bf2a..5f49cd105fae 100644
--- a/drivers/iio/trigger/iio-trig-interrupt.c
+++ b/drivers/iio/trigger/iio-trig-interrupt.c
@@ -25,9 +25,6 @@ static irqreturn_t iio_interrupt_trigger_poll(int irq, void *private)
return IRQ_HANDLED;
}
-static const struct iio_trigger_ops iio_interrupt_trigger_ops = {
-};
-
static int iio_interrupt_trigger_probe(struct platform_device *pdev)
{
struct iio_interrupt_trigger_info *trig_info;
@@ -58,7 +55,6 @@ static int iio_interrupt_trigger_probe(struct platform_device *pdev)
}
iio_trigger_set_drvdata(trig, trig_info);
trig_info->irq = irq;
- trig->ops = &iio_interrupt_trigger_ops;
ret = request_irq(irq, iio_interrupt_trigger_poll,
irqflags, trig->name, trig);
if (ret) {