hwmon: (da9055) Don't use dash in the name attribute
authorAxel Lin <axel.lin@ingics.com>
Wed, 9 Jul 2014 01:22:54 +0000 (09:22 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 14 Jul 2014 17:42:12 +0000 (10:42 -0700)
Dashes are not allowed in hwmon name attributes.
Use "da9055" instead of "da9055-hwmon".

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/da9055-hwmon.c

index 73b3865f1207ada0b74949dba3d5e4636086c21b..35eb7738d7119cf2d706d5cd60323b04e9e76988 100644 (file)
@@ -204,7 +204,7 @@ static ssize_t da9055_hwmon_show_name(struct device *dev,
                                      struct device_attribute *devattr,
                                      char *buf)
 {
-       return sprintf(buf, "da9055-hwmon\n");
+       return sprintf(buf, "da9055\n");
 }
 
 static ssize_t show_label(struct device *dev,