mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: fix thermal sparse warning
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-2
@@ -197,7 +197,7 @@ static const struct thermal_cooling_device_ops mt7996_thermal_ops = {
|
||||
static void mt7996_unregister_thermal(struct mt7996_phy *phy)
|
||||
{
|
||||
struct wiphy *wiphy = phy->mt76->hw->wiphy;
|
||||
char name[sizeof("cooling_device%d")];
|
||||
char name[sizeof("cooling_deviceXXX")];
|
||||
|
||||
if (!phy->cdev)
|
||||
return;
|
||||
@@ -210,7 +210,7 @@ static void mt7996_unregister_thermal(struct mt7996_phy *phy)
|
||||
static int mt7996_thermal_init(struct mt7996_phy *phy)
|
||||
{
|
||||
struct wiphy *wiphy = phy->mt76->hw->wiphy;
|
||||
char cname[sizeof("cooling_device%d")];
|
||||
char cname[sizeof("cooling_deviceXXX")];
|
||||
struct thermal_cooling_device *cdev;
|
||||
struct device *hwmon;
|
||||
const char *name;
|
||||
|
||||
Reference in New Issue
Block a user