Skip to content

Commit

Permalink
compal-laptop: correct invalid hwmon name
Browse files Browse the repository at this point in the history
Change the name of the hwmon interface from "compal-laptop" to "compal".
A dash is an invalid character for a hwmon name and caused the call to
hwmon_device_register_with_groups() to fail.

Signed-off-by: Roald Frederickx <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
  • Loading branch information
RoaldFre authored and Matthew Garrett committed Aug 16, 2014
1 parent e6efad7 commit 9a5ee65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/compal-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ static int compal_probe(struct platform_device *pdev)
return err;

hwmon_dev = hwmon_device_register_with_groups(&pdev->dev,
DRIVER_NAME, data,
"compal", data,
compal_hwmon_groups);
if (IS_ERR(hwmon_dev)) {
err = PTR_ERR(hwmon_dev);
Expand Down

0 comments on commit 9a5ee65

Please sign in to comment.