iio: core: Add optional symbolic label to device attributes
authorPhil Reid <preid@electromag.com.au>
Thu, 19 Sep 2019 14:36:08 +0000 (22:36 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 7 Oct 2019 20:31:18 +0000 (21:31 +0100)
commit2c3d0c9ffd24d9b4c62c5dfb2104695a614be28c
treeb42d3f86f7b5f1f197dfe55c274e37b7377130d5
parentdc7fe512d9667bce878797cd2fd39acec08232bb
iio: core: Add optional symbolic label to device attributes

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.

Tested-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-core.c
include/linux/iio/iio.h