mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7615/mt7915: fix hwmon device name
the "-" character is rejected by the subsystem for device names Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ int mt7615_thermal_init(struct mt7615_dev *dev)
|
||||
if (!IS_REACHABLE(CONFIG_HWMON))
|
||||
return 0;
|
||||
|
||||
name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7615-%s",
|
||||
name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7615_%s",
|
||||
wiphy_name(wiphy));
|
||||
hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev, name, dev,
|
||||
mt7615_hwmon_groups);
|
||||
|
||||
+1
-1
@@ -162,7 +162,7 @@ static int mt7915_thermal_init(struct mt7915_phy *phy)
|
||||
struct device *hwmon;
|
||||
const char *name;
|
||||
|
||||
name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7915-%s",
|
||||
name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7915_%s",
|
||||
wiphy_name(wiphy));
|
||||
|
||||
cdev = thermal_cooling_device_register(name, phy, &mt7915_thermal_ops);
|
||||
|
||||
Reference in New Issue
Block a user