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)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Mar 2015 18:36:15 +0000 (18:36 +0000)
commit8d09f48adfd282157f6afc94d2502b44156cb12f
treeb8c1b2ca32ee8321ef4c022c76850d36f09b8b44
parent0ba8da961bd868c67a8dae3dbbee145514515e9c
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: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/magnetometer/hmc5843_core.c