]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97668d88b181f0edfee70a43112d257009f3b07c
treeb42d3f86f7b5f1f197dfe55c274e37b7377130d5
parent81c62138c388898fc3dff993e1082df4c984a961
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