diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-07-09 09:18:59 +0800 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-07-29 16:56:53 +0200 |
commit | 9de942f9996616efb52f8596f9d4596d9320432e (patch) | |
tree | 887c78b41e128a440bb0fbe1f8891c4bc22ab425 /drivers/hwmon | |
parent | 6687e93389416e0e02af6f1435e9aa02b27b29f2 (diff) |
hwmon: (da9052) Don't use dash in the name attribute
commit ee14b644daaa58afe1e91bb9ebd9cf1b18d1f5fa upstream.
Dashes are not allowed in hwmon name attributes.
Use "da9052" instead of "da9052-hwmon".
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/da9052-hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/da9052-hwmon.c b/drivers/hwmon/da9052-hwmon.c index 960fac3fb166..48044b044b7a 100644 --- a/drivers/hwmon/da9052-hwmon.c +++ b/drivers/hwmon/da9052-hwmon.c @@ -194,7 +194,7 @@ static ssize_t da9052_hwmon_show_name(struct device *dev, struct device_attribute *devattr, char *buf) { - return sprintf(buf, "da9052-hwmon\n"); + return sprintf(buf, "da9052\n"); } static ssize_t show_label(struct device *dev, |