提交 d26e0da7 编写于 作者: J Julien D'Ascenzio 提交者: Guenter Roeck

hwmon: (gpio-fan) Change name used in hwmon_device_register_with_groups

Since commit 648cd48c
The hwmon name attributes must not include '-' so the name must be
rename from gpio-fan to gpio_fan
Signed-off-by: NJulien D'Ascenzio <jdascenzio@yahoo.fr>
Reviewed-by: NJean Delvare <jdelvare@suse.de>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 adb57835
...@@ -538,7 +538,7 @@ static int gpio_fan_probe(struct platform_device *pdev) ...@@ -538,7 +538,7 @@ static int gpio_fan_probe(struct platform_device *pdev)
/* Make this driver part of hwmon class. */ /* Make this driver part of hwmon class. */
fan_data->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev, fan_data->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev,
"gpio-fan", fan_data, "gpio_fan", fan_data,
gpio_fan_groups); gpio_fan_groups);
if (IS_ERR(fan_data->hwmon_dev)) if (IS_ERR(fan_data->hwmon_dev))
return PTR_ERR(fan_data->hwmon_dev); return PTR_ERR(fan_data->hwmon_dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册