]> git.baikalelectronics.ru Git - kernel.git/commit
staging/iio: iio_hwmon: Use device tree node name for hwmon name attribute
authorGuenter Roeck <linux@roeck-us.net>
Wed, 20 Mar 2013 15:52:00 +0000 (15:52 +0000)
committerJonathan Cameron <jic23@kernel.org>
Wed, 20 Mar 2013 21:37:59 +0000 (21:37 +0000)
commit7136c996cb2ffa7d8c62c3342fe72f2ad4e872f4
tree0670bfd4df972c122215420a9cc213d62862f39d
parent017c1d2aa7419d6ab6c7ec48afc7fc92851718cd
staging/iio: iio_hwmon: Use device tree node name for hwmon name attribute

So far, all instances of iio_hwmon set their hwmon name attribute
to "iio_hwmon", which is not very descriptive. Set it to the device tree
node name if available, and only revert to iio_hwmon otherwise.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/iio_hwmon.c