mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
hwmon: (dell-smm-hwmon) Use a valid name attribute
As per Documentation/hwmon/sysfs-interface, hwmon name attributes must
not include '-', so replace 'dell-smm' with 'dell_smm'.
Fixes: 039ae58503 ("hwmon: Allow to compile dell-smm-hwmon driver without /proc/i8k")
Signed-off-by: Gabriele Mazzotta <[email protected]>
Acked-by: Pali Rohár <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
7adf12b87f
commit
9026cae1c6
1 changed files with 1 additions and 1 deletions
|
|
@ -777,7 +777,7 @@ static int __init i8k_init_hwmon(void)
|
|||
if (err >= 0)
|
||||
i8k_hwmon_flags |= I8K_HWMON_HAVE_FAN2;
|
||||
|
||||
i8k_hwmon_dev = hwmon_device_register_with_groups(NULL, "dell-smm",
|
||||
i8k_hwmon_dev = hwmon_device_register_with_groups(NULL, "dell_smm",
|
||||
NULL, i8k_groups);
|
||||
if (IS_ERR(i8k_hwmon_dev)) {
|
||||
err = PTR_ERR(i8k_hwmon_dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue