All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops
@ 2021-10-31 14:21 Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 2/9] iio: sysfs-trigger: " Lars-Peter Clausen
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Lars-Peter Clausen @ 2021-10-31 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij,
	linux-iio, Lars-Peter Clausen

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>
---
 drivers/iio/trigger/iio-trig-interrupt.c | 4 ----
 1 file changed, 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) {
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/9] iio: sysfs-trigger: Remove no-op trigger ops
  2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
@ 2021-10-31 14:21 ` Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 3/9] iio: ad_sigma_delta: " Lars-Peter Clausen
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Lars-Peter Clausen @ 2021-10-31 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij,
	linux-iio, Lars-Peter Clausen

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>
---
 drivers/iio/trigger/iio-trig-sysfs.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c
index e9adfff45b39..2a4b75897910 100644
--- a/drivers/iio/trigger/iio-trig-sysfs.c
+++ b/drivers/iio/trigger/iio-trig-sysfs.c
@@ -124,9 +124,6 @@ static const struct attribute_group *iio_sysfs_trigger_attr_groups[] = {
 	NULL
 };
 
-static const struct iio_trigger_ops iio_sysfs_trigger_ops = {
-};
-
 static int iio_sysfs_trigger_probe(int id)
 {
 	struct iio_sysfs_trig *t;
@@ -156,7 +153,6 @@ static int iio_sysfs_trigger_probe(int id)
 	}
 
 	t->trig->dev.groups = iio_sysfs_trigger_attr_groups;
-	t->trig->ops = &iio_sysfs_trigger_ops;
 	iio_trigger_set_drvdata(t->trig, t);
 
 	t->work = IRQ_WORK_INIT_HARD(iio_sysfs_trigger_work);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/9] iio: ad_sigma_delta: Remove no-op trigger ops
  2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 2/9] iio: sysfs-trigger: " Lars-Peter Clausen
@ 2021-10-31 14:21 ` Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 4/9] iio: afe4403: " Lars-Peter Clausen
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Lars-Peter Clausen @ 2021-10-31 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij,
	linux-iio, Lars-Peter Clausen

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>
---
 drivers/iio/adc/ad_sigma_delta.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/iio/adc/ad_sigma_delta.c b/drivers/iio/adc/ad_sigma_delta.c
index 1d652d9b2f5c..cd418bd8bd87 100644
--- a/drivers/iio/adc/ad_sigma_delta.c
+++ b/drivers/iio/adc/ad_sigma_delta.c
@@ -467,9 +467,6 @@ int ad_sd_validate_trigger(struct iio_dev *indio_dev, struct iio_trigger *trig)
 }
 EXPORT_SYMBOL_GPL(ad_sd_validate_trigger);
 
-static const struct iio_trigger_ops ad_sd_trigger_ops = {
-};
-
 static int devm_ad_sd_probe_trigger(struct device *dev, struct iio_dev *indio_dev)
 {
 	struct ad_sigma_delta *sigma_delta = iio_device_get_drvdata(indio_dev);
@@ -486,7 +483,6 @@ static int devm_ad_sd_probe_trigger(struct device *dev, struct iio_dev *indio_de
 	if (sigma_delta->trig == NULL)
 		return -ENOMEM;
 
-	sigma_delta->trig->ops = &ad_sd_trigger_ops;
 	init_completion(&sigma_delta->completion);
 
 	sigma_delta->irq_dis = true;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 4/9] iio: afe4403: Remove no-op trigger ops
  2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 2/9] iio: sysfs-trigger: " Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 3/9] iio: ad_sigma_delta: " Lars-Peter Clausen
@ 2021-10-31 14:21 ` Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 5/9] iio: afe4404: " Lars-Peter Clausen
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Lars-Peter Clausen @ 2021-10-31 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij,
	linux-iio, Lars-Peter Clausen

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>
---
 drivers/iio/health/afe4403.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/iio/health/afe4403.c b/drivers/iio/health/afe4403.c
index 97b82f9a8e45..273f16dcaff8 100644
--- a/drivers/iio/health/afe4403.c
+++ b/drivers/iio/health/afe4403.c
@@ -345,9 +345,6 @@ static irqreturn_t afe4403_trigger_handler(int irq, void *private)
 	return IRQ_HANDLED;
 }
 
-static const struct iio_trigger_ops afe4403_trigger_ops = {
-};
-
 #define AFE4403_TIMING_PAIRS			\
 	{ AFE440X_LED2STC,	0x000050 },	\
 	{ AFE440X_LED2ENDC,	0x0003e7 },	\
@@ -530,8 +527,6 @@ static int afe4403_probe(struct spi_device *spi)
 
 		iio_trigger_set_drvdata(afe->trig, indio_dev);
 
-		afe->trig->ops = &afe4403_trigger_ops;
-
 		ret = iio_trigger_register(afe->trig);
 		if (ret) {
 			dev_err(afe->dev, "Unable to register IIO trigger\n");
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 5/9] iio: afe4404: Remove no-op trigger ops
  2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
                   ` (2 preceding siblings ...)
  2021-10-31 14:21 ` [PATCH 4/9] iio: afe4403: " Lars-Peter Clausen
@ 2021-10-31 14:21 ` Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 6/9] iio: as3935: " Lars-Peter Clausen
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Lars-Peter Clausen @ 2021-10-31 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij,
	linux-iio, Lars-Peter Clausen

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>
---
 drivers/iio/health/afe4404.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/iio/health/afe4404.c b/drivers/iio/health/afe4404.c
index 7ef3f5e34de5..aa9311e1e655 100644
--- a/drivers/iio/health/afe4404.c
+++ b/drivers/iio/health/afe4404.c
@@ -347,9 +347,6 @@ static irqreturn_t afe4404_trigger_handler(int irq, void *private)
 	return IRQ_HANDLED;
 }
 
-static const struct iio_trigger_ops afe4404_trigger_ops = {
-};
-
 /* Default timings from data-sheet */
 #define AFE4404_TIMING_PAIRS			\
 	{ AFE440X_PRPCOUNT,	39999	},	\
@@ -537,8 +534,6 @@ static int afe4404_probe(struct i2c_client *client,
 
 		iio_trigger_set_drvdata(afe->trig, indio_dev);
 
-		afe->trig->ops = &afe4404_trigger_ops;
-
 		ret = iio_trigger_register(afe->trig);
 		if (ret) {
 			dev_err(afe->dev, "Unable to register IIO trigger\n");
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 6/9] iio: as3935: Remove no-op trigger ops
  2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
                   ` (3 preceding siblings ...)
  2021-10-31 14:21 ` [PATCH 5/9] iio: afe4404: " Lars-Peter Clausen
@ 2021-10-31 14:21 ` Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 7/9] iio: atlas-sensor: " Lars-Peter Clausen
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Lars-Peter Clausen @ 2021-10-31 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij,
	linux-iio, Lars-Peter Clausen

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>
---
 drivers/iio/proximity/as3935.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c
index 3797a8f54276..d62766b6b39e 100644
--- a/drivers/iio/proximity/as3935.c
+++ b/drivers/iio/proximity/as3935.c
@@ -238,9 +238,6 @@ static irqreturn_t as3935_trigger_handler(int irq, void *private)
 	return IRQ_HANDLED;
 }
 
-static const struct iio_trigger_ops iio_interrupt_trigger_ops = {
-};
-
 static void as3935_event_work(struct work_struct *work)
 {
 	struct as3935_state *st;
@@ -417,7 +414,6 @@ static int as3935_probe(struct spi_device *spi)
 	st->trig = trig;
 	st->noise_tripped = jiffies - HZ;
 	iio_trigger_set_drvdata(trig, indio_dev);
-	trig->ops = &iio_interrupt_trigger_ops;
 
 	ret = devm_iio_trigger_register(dev, trig);
 	if (ret) {
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 7/9] iio: atlas-sensor: Remove no-op trigger ops
  2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
                   ` (4 preceding siblings ...)
  2021-10-31 14:21 ` [PATCH 6/9] iio: as3935: " Lars-Peter Clausen
@ 2021-10-31 14:21 ` Lars-Peter Clausen
  2021-10-31 14:21 ` [PATCH 8/9] iio: gp2ap020a00f: " Lars-Peter Clausen
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Lars-Peter Clausen @ 2021-10-31 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij,
	linux-iio, Lars-Peter Clausen

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>
---
 drivers/iio/chemical/atlas-sensor.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/iio/chemical/atlas-sensor.c b/drivers/iio/chemical/atlas-sensor.c
index 9cb99585b6ff..04b44a327614 100644
--- a/drivers/iio/chemical/atlas-sensor.c
+++ b/drivers/iio/chemical/atlas-sensor.c
@@ -434,9 +434,6 @@ static int atlas_buffer_predisable(struct iio_dev *indio_dev)
 	return 0;
 }
 
-static const struct iio_trigger_ops atlas_interrupt_trigger_ops = {
-};
-
 static const struct iio_buffer_setup_ops atlas_buffer_setup_ops = {
 	.postenable = atlas_buffer_postenable,
 	.predisable = atlas_buffer_predisable,
@@ -645,7 +642,6 @@ static int atlas_probe(struct i2c_client *client,
 	data->client = client;
 	data->trig = trig;
 	data->chip = chip;
-	trig->ops = &atlas_interrupt_trigger_ops;
 	iio_trigger_set_drvdata(trig, indio_dev);
 
 	i2c_set_clientdata(client, indio_dev);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 8/9] iio: gp2ap020a00f: Remove no-op trigger ops
  2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
                   ` (5 preceding siblings ...)
  2021-10-31 14:21 ` [PATCH 7/9] iio: atlas-sensor: " Lars-Peter Clausen
@ 2021-10-31 14:21 ` Lars-Peter Clausen
  2021-11-09 11:01   ` Linus Walleij
  2021-10-31 14:21 ` [PATCH 9/9] iio: lmp91000: " Lars-Peter Clausen
  2021-11-03 17:54 ` [PATCH 1/9] iio: interrupt-trigger: " Jonathan Cameron
  8 siblings, 1 reply; 11+ messages in thread
From: Lars-Peter Clausen @ 2021-10-31 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij,
	linux-iio, Lars-Peter Clausen

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>
---
 drivers/iio/light/gp2ap020a00f.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/iio/light/gp2ap020a00f.c b/drivers/iio/light/gp2ap020a00f.c
index d1d9f2d319e4..b820041159f7 100644
--- a/drivers/iio/light/gp2ap020a00f.c
+++ b/drivers/iio/light/gp2ap020a00f.c
@@ -1467,9 +1467,6 @@ static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = {
 	.predisable = &gp2ap020a00f_buffer_predisable,
 };
 
-static const struct iio_trigger_ops gp2ap020a00f_trigger_ops = {
-};
-
 static int gp2ap020a00f_probe(struct i2c_client *client,
 				const struct i2c_device_id *id)
 {
@@ -1550,8 +1547,6 @@ static int gp2ap020a00f_probe(struct i2c_client *client,
 		goto error_uninit_buffer;
 	}
 
-	data->trig->ops = &gp2ap020a00f_trigger_ops;
-
 	init_irq_work(&data->work, gp2ap020a00f_iio_trigger_work);
 
 	err = iio_trigger_register(data->trig);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 9/9] iio: lmp91000: Remove no-op trigger ops
  2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
                   ` (6 preceding siblings ...)
  2021-10-31 14:21 ` [PATCH 8/9] iio: gp2ap020a00f: " Lars-Peter Clausen
@ 2021-10-31 14:21 ` Lars-Peter Clausen
  2021-11-03 17:54 ` [PATCH 1/9] iio: interrupt-trigger: " Jonathan Cameron
  8 siblings, 0 replies; 11+ messages in thread
From: Lars-Peter Clausen @ 2021-10-31 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij,
	linux-iio, Lars-Peter Clausen

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>
---
 drivers/iio/potentiostat/lmp91000.c | 4 ----
 1 file changed, 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);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops
  2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
                   ` (7 preceding siblings ...)
  2021-10-31 14:21 ` [PATCH 9/9] iio: lmp91000: " Lars-Peter Clausen
@ 2021-11-03 17:54 ` Jonathan Cameron
  8 siblings, 0 replies; 11+ messages in thread
From: Jonathan Cameron @ 2021-11-03 17:54 UTC (permalink / raw)
  To: Lars-Peter Clausen
  Cc: Michael Hennerich, Nuno Sa, Matt Ranostay, Linus Walleij, linux-iio

On Sun, 31 Oct 2021 15:21:22 +0100
Lars-Peter Clausen <lars@metafoo.de> wrote:

> 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>
Good spot - I was kind of assuming we didn't protect all call sites
but seems that we do so good to get rid of these

Series applied to the togreg branch of iio.git and pushed out as testing
for all the normal reasons.

Thanks,

Jonathan

> ---
>  drivers/iio/trigger/iio-trig-interrupt.c | 4 ----
>  1 file changed, 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) {


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 8/9] iio: gp2ap020a00f: Remove no-op trigger ops
  2021-10-31 14:21 ` [PATCH 8/9] iio: gp2ap020a00f: " Lars-Peter Clausen
@ 2021-11-09 11:01   ` Linus Walleij
  0 siblings, 0 replies; 11+ messages in thread
From: Linus Walleij @ 2021-11-09 11:01 UTC (permalink / raw)
  To: Lars-Peter Clausen
  Cc: Jonathan Cameron, Michael Hennerich, Nuno Sa, Matt Ranostay, linux-iio

On Sun, Oct 31, 2021 at 3:21 PM Lars-Peter Clausen <lars@metafoo.de> wrote:

> 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>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-11-09 11:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-31 14:21 [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Lars-Peter Clausen
2021-10-31 14:21 ` [PATCH 2/9] iio: sysfs-trigger: " Lars-Peter Clausen
2021-10-31 14:21 ` [PATCH 3/9] iio: ad_sigma_delta: " Lars-Peter Clausen
2021-10-31 14:21 ` [PATCH 4/9] iio: afe4403: " Lars-Peter Clausen
2021-10-31 14:21 ` [PATCH 5/9] iio: afe4404: " Lars-Peter Clausen
2021-10-31 14:21 ` [PATCH 6/9] iio: as3935: " Lars-Peter Clausen
2021-10-31 14:21 ` [PATCH 7/9] iio: atlas-sensor: " Lars-Peter Clausen
2021-10-31 14:21 ` [PATCH 8/9] iio: gp2ap020a00f: " Lars-Peter Clausen
2021-11-09 11:01   ` Linus Walleij
2021-10-31 14:21 ` [PATCH 9/9] iio: lmp91000: " Lars-Peter Clausen
2021-11-03 17:54 ` [PATCH 1/9] iio: interrupt-trigger: " Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.