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:57:48 +0000 (11:57 -0800)
commit2388eb1b0645f815b193165b17c0ab0f161ec17e
treeb3166baadf198ddf70be3ddddb30c933dbe9eb06
parent9d080ce6c4f118fa425f072e28c0b75ee715a69c
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