Skip to content

staging:iio: trigger owner field confusion cleanup.

Jonathan Cameron linux-iio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2staging:iio: Make sure all triggers have a trigger_ops for the owner field.drivers/staging/iio/adc/ad7192.c drivers/staging/iio/adc/ad7793.c+10 -10 replies
2/2staging:iio: iio_trigger contains defunct owner field. Remove it.drivers/staging/iio/adc/ad7192.c drivers/staging/iio/adc/ad7793.c drivers/staging/iio/trigger.h +1 more+0 -50 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLars-Peter Clausen
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] staging:iio: trigger owner field confusion cleanup.

Hi Greg,

Lifting from original posting...

This issue came to my attention whilst reviewing Maximes at91 patches. Anyhow, we have iio_trigger->owner and iio_trigger->ops->owner.

The first was meant to have gone away.
A couple of drivers don't provide iio_trigger->ops causing nastiness to happen when the trigger get or put occurs. Not seen in the wild as I don't have either of the two devices in question.

Simple fix. Add the struture where missing and get rid of the owner field from the iio_trigger structure.

Thanks,

Jonathan

Jonathan Cameron (2):
staging:iio: Make sure all triggers have a trigger_ops for the owner
field.
staging:iio: iio_trigger contains defunct owner field. Remove it.

 drivers/staging/iio/adc/ad7192.c                   |    7 +++++--
 drivers/staging/iio/adc/ad7793.c                   |    6 +++++-
 drivers/staging/iio/trigger.h                      |    2 --
 .../staging/iio/trigger/iio-trig-periodic-rtc.c    |    1 -
 4 files changed, 10 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.7.4