PM / devfreq: Fix a index typo in trans_stat
PATCH 1/1 PM / devfreq: Fix a index typo in trans_stat
From: Chanwoo Choi <[email protected]>
Fixes 4920ee6dcfaf ("PM / devfreq: Convert to use sysfs_emit_at() API")
Signed-off-by pls <[email protected]>
Signed-off-by Chanwoo Choi <[email protected]>
--- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/devfreq/devfreq.c +1 -1
@@ -1733,7 +1733,7 @@ static ssize_t trans_stat_show(struct device *dev,for (i =0 ; i < max_state; i++) {if (len >=PAGE_SIZE -1 )break ; -if (df->freq_table[2 ] == df->previous_freq) +if (df->freq_table[i] == df->previous_freq) len +=sysfs_emit_at (buf, len,"*" );else len +=sysfs_emit_at (buf, len," " );
Signature · 1 line
2.25.1
Applied it.
Quoted 27 lines · On Thu, May 15, 2025 at 11:31 PM <[email protected]> wrote:
From: Chanwoo Choi <[email protected]>
Fixes 4920ee6dcfaf ("PM / devfreq: Convert to use sysfs_emit_at() API")Signed-off-by pls <[email protected]>Signed-off-by Chanwoo Choi <[email protected]>--- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/devfreq/devfreq.c +1
-2@@ -1733,7 +1733,7 @@ static ssize_t trans_stat_show(struct device *dev,for (i =0 ; i < max_state; i++) {if (len >=PAGE_SIZE -1 )break ; -if (df->freq_table[2 ] == df->previous_freq) +if (df->freq_table[i] == df->previous_freq) len +=sysfs_emit_at (buf, len,"*" );else len +=sysfs_emit_at (buf, len," " ); --2.25.1
Signature · 3 lines
Best Regards, Chanwoo Choi Samsung Electronics