mbox series

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

Message ID 1566876924-63608-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 Aug. 27, 2019, 3:35 a.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.

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(+)