Skip to content

Remove use of isvisible for attr groups that are coppied.

Jonathan Cameron linux-iio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5staging:iio:adc:ad7192 unwind use of is_visible for attribute group.drivers/staging/iio/adc/ad7192.c+25 -180 replies
2/5staging:iio:dds:ad9834 unwind use of is_visible for attrs.drivers/staging/iio/dds/ad9834.c+32 -210 replies
3/5staging:iio:dac:ad5446 unwind use of is_visible for attrs.drivers/staging/iio/dac/ad5446.c+10 -230 replies
4/5staging:iio:adc:ad7606 unwind use of is_visible for attrs.drivers/staging/iio/adc/ad7606_core.c+53 -300 replies
5/5staging:iio:adc:adt7310/7410 sticking plaster fix for broken event attrs.drivers/staging/iio/adc/adt7310.c drivers/staging/iio/adc/adt7410.c+8 -340 replies

Reviews trailers per patch

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

PatchLars-Peter Clausen
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-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/5] Remove use of isvisible for attr groups that are coppied.

Hi Greg,

These are all fixes.

These patches were originally part of a series that squished the attribute groups entirely, but whilst everyone was happy with these, the final patch was dropped.

Anyhow, the eventual attribute groups that get registered are mostly built from the iio_chan_spec structures. These groups are just used to pass in bits the core doesn't handle. This made it it rather difficult to ensure that the is_visible function was consistent (as it would be applied to a much larger set than apparent if we coppied it on as is) and in the vast majority of cases its use was trivial anyway.

If a good reason for using is_visible comes up, then the right option will be to first verifying if the element comes from these attribute groups that are passed in before calling the is_visible function provided in these groups. Anyhow, not too bad, but not currently necessary.

Even if we do put this in, these cases are easier to read (and in somecases shorter) when not using it.

Jonathan

Jonathan Cameron (5):
staging:iio:adc:ad7192 unwind use of is_visible for attribute group. staging:iio:dds:ad9834 unwind use of is_visible for attrs. staging:iio:dac:ad5446 unwind use of is_visible for attrs. staging:iio:adc:ad7606 unwind use of is_visible for attrs. staging:iio:adc:adt7310/7410 sticking plaster fix for broken event
attrs.

 drivers/staging/iio/adc/ad7192.c      |   43 ++++++++++-------
 drivers/staging/iio/adc/ad7606_core.c |   83 +++++++++++++++++++++------------
 drivers/staging/iio/adc/adt7310.c     |   21 ++-------
 drivers/staging/iio/adc/adt7410.c     |   21 ++-------
 drivers/staging/iio/dac/ad5446.c      |   33 ++++---------
 drivers/staging/iio/dds/ad9834.c      |   53 +++++++++++++--------
 6 files changed, 128 insertions(+), 126 deletions(-)
Signature · 1 line
1.7.8.4