diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2021-10-31 15:21:30 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-11-17 17:51:38 +0000 |
commit | 6a9a90364914d41a1a7456dd964af8dc2ab3ed4b (patch) | |
tree | 22c26bde06905f5fc91c467625d3341668d4a8e1 /drivers/iio/potentiostat | |
parent | 9662afc9059b79ed4efb8b90b2865f9c919c7fe4 (diff) | |
download | linux-stable-6a9a90364914d41a1a7456dd964af8dc2ab3ed4b.tar.gz linux-stable-6a9a90364914d41a1a7456dd964af8dc2ab3ed4b.tar.bz2 linux-stable-6a9a90364914d41a1a7456dd964af8dc2ab3ed4b.zip |
iio: lmp91000: 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-9-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/potentiostat')
-rw-r--r-- | drivers/iio/potentiostat/lmp91000.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c index ed30bdaa10ec..fe514f0b5506 100644 --- a/drivers/iio/potentiostat/lmp91000.c +++ b/drivers/iio/potentiostat/lmp91000.c @@ -271,9 +271,6 @@ static int lmp91000_buffer_cb(const void *val, void *private) return 0; } -static const struct iio_trigger_ops lmp91000_trigger_ops = { -}; - static int lmp91000_buffer_postenable(struct iio_dev *indio_dev) { struct lmp91000_data *data = iio_priv(indio_dev); @@ -330,7 +327,6 @@ static int lmp91000_probe(struct i2c_client *client, return -ENOMEM; } - data->trig->ops = &lmp91000_trigger_ops; init_completion(&data->completion); ret = lmp91000_read_config(data); |