Skip to content

Commit 2324277

Browse files
LiHuiSong1groeck
authored andcommitted
hwmon: Fix the missing of 'average' word in hwmon_power_attr_templates
The string "power%d_interval_max" and "power%d_interval_min" in the hwmon_power_attr_templates[] are corresponding to the sysfs interface name of hwmon_power_average_interval_max and hwmon_power_average_interval_min. But the 'average' word is missing in two strings. Fortunately, there is no driver to use it yet. Signed-off-by: Huisong Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 0ea6273 commit 2324277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hwmon/hwmon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ static const char * const hwmon_power_attr_templates[] = {
646646
[hwmon_power_enable] = "power%d_enable",
647647
[hwmon_power_average] = "power%d_average",
648648
[hwmon_power_average_interval] = "power%d_average_interval",
649-
[hwmon_power_average_interval_max] = "power%d_interval_max",
650-
[hwmon_power_average_interval_min] = "power%d_interval_min",
649+
[hwmon_power_average_interval_max] = "power%d_average_interval_max",
650+
[hwmon_power_average_interval_min] = "power%d_average_interval_min",
651651
[hwmon_power_average_highest] = "power%d_average_highest",
652652
[hwmon_power_average_lowest] = "power%d_average_lowest",
653653
[hwmon_power_average_max] = "power%d_average_max",

0 commit comments

Comments
 (0)