mbox series

[v2,0/2] iio: core: Add optional symbolic label to device attributes

Message ID 1568903768-65998-1-git-send-email-preid@electromag.com.au (mailing list archive)
Headers show
Series iio: core: Add optional symbolic label to device attributes | expand

Message

Phil Reid Sept. 19, 2019, 2:36 p.m. UTC
If a label is defined in the device tree for this device add that
to the device specific attributes. This is useful for userspace to
be able to identify an individual device when multiple identical
chips are present in the system.

Similar to leds, display labels etc.

Changes from V1:
- Update commit message for dt_bind commit
- Update example label for dt-binding

I haven't added Rob's reviewed-by from V1. Wasnt't
sure if the changes are minor enough to keep that.

Phil Reid (2):
  dt-binding: iio: Add optional label property
  iio: core: Add optional symbolic label to device attributes

 Documentation/devicetree/bindings/iio/iio-bindings.txt |  5 +++++
 drivers/iio/industrialio-core.c                        | 17 +++++++++++++++++
 include/linux/iio/iio.h                                |  1 +
 3 files changed, 23 insertions(+)