]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: dac: mcp4725: set iio name property in sysfs
authorYong Li <sdliyong@gmail.com>
Wed, 6 Jan 2016 01:09:43 +0000 (09:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Feb 2016 19:58:54 +0000 (11:58 -0800)
commit6c1a9c4caad3cdaea588413830ad7692afdd89f9
tree63900c34da8a6b127f25cb62bd6404efe5197ffb
parentb54153db9b08def355798e9b5eb12d1afe325131
iio: dac: mcp4725: set iio name property in sysfs

commit 97a249e98a72d6b79fb7350a8dd56b147e9d5bdb upstream.

Without this change, the name entity for mcp4725 is missing in
/sys/bus/iio/devices/iio\:device*/name

With this change, name is reported correctly

Signed-off-by: Yong Li <sdliyong@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/dac/mcp4725.c