staging: iio: hmc5843: Set iio name property in sysfs
authorMarek Belisko <marek@goldelico.com>
Sat, 28 Feb 2015 20:54:42 +0000 (21:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 01:06:30 +0000 (17:06 -0800)
commitdae7f15e538537d58eb1b9f7046600d98af16cd7
tree07e0b5b154e9c72967c8bbb6fb759529e7e44c1e
parent4c1d2dcb64db1d881d1822b5789022a03bc6abe4
staging: iio: hmc5843: Set iio name property in sysfs

Without this change file name for hmc5843 is empty in
/sys/bus/iio/devices/iio\:device*/name

With this change name is reported correctly:
cat /sys/bus/iio/devices/iio\:device*/name
hmc5843

Signed-off-by: Marek Belisko <marek@goldelico.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/magnetometer/hmc5843_core.c