Skip to content

Commit

Permalink
hwmon: (gpio-fan) Change name used in hwmon_device_register_with_groups
Browse files Browse the repository at this point in the history
Since commit 648cd48
The hwmon name attributes must not include '-' so the name must be
rename from gpio-fan to gpio_fan

Signed-off-by: Julien D'Ascenzio <[email protected]>
Reviewed-by: Jean Delvare <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
Julien D'Ascenzio authored and groeck committed Jun 25, 2014
1 parent adb5783 commit d26e0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/gpio-fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
"gpio_fan", fan_data,
gpio_fan_groups);
if (IS_ERR(fan_data->hwmon_dev))
return PTR_ERR(fan_data->hwmon_dev);
Expand Down

0 comments on commit d26e0da

Please sign in to comment.