hwmon: gpio-fan: Change name passed to hwmon_device_register_with_groups
PATCH 1/1 hwmon: gpio-fan: Change name passed to hwmon_device_register_with_groups
Commit 648cd48c9e566f53c5df30d79857e0937ae13b09 (hwmon: Do not accept invalid name attributes) added check for "-" in the name of hwmon device. This patch changes the name supplied by gpio-fan so that it is accepted by hwmon.
--- drivers/hwmon/gpio-fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/gpio-fan.c +1 -1
@@ -538,7 +538,7 @@ static int gpio_fan_probe(struct platform_device *pdev)/* Make this driver part of hwmon class. */ fan_data->hwmon_dev =hwmon_device_register_with_groups (&pdev->dev, -"gpio-fan" , fan_data, +"gpiofan" , fan_data, gpio_fan_groups);if (IS_ERR (fan_data->hwmon_dev))return PTR_ERR (fan_data->hwmon_dev);
Signature · 7 lines
1.7.9.5 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Guenter Roeck
maintainerQuoted 15 lines · Kamil Debski
Commit
648cd48c9e566f53c5df30d79857e0937ae13b09(hwmon: Do not accept invalid name attributes) added check for "-" in the name of hwmon device. This patch changes the name supplied by gpio-fan so that it is accepted by hwmon.Signed-off-by Kamil Debski <[email protected]>--- drivers/hwmon/gpio-fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hwmon/gpio-fan.c +0
-0
drivers/hwmon/gpio-fan.c static int gpio_fan_probe(struct platform_device *pdev) · line 541
Quoted 5 lines
drivers/hwmon/gpio-fan.c +1
-1@@ -538,7 +538,7 @@ static int gpio_fan_probe(struct platform_device *pdev)/* Make this driver part of hwmon class. */ fan_data->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev, - "gpio-fan", fan_data, + "gpiofan", fan_data,
This has already been changed to "gpio_fan" in the latest kernel. See commit d26e0da78 (hwmon: (gpio-fan) Change name used in hwmon_device_register_with_groups).
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors