Skip to content

Commit 78c5845

Browse files
committed
PM / devfreq: Fix a index typo in trans_stat
Fixes: 4920ee6 ("PM / devfreq: Convert to use sysfs_emit_at() API") Signed-off-by: pls <pleasurefish@126.com> Link: https://patchwork.kernel.org/project/linux-pm/patch/20250515143100.17849-1-chanwoo@kernel.org/ Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent bab7834 commit 78c5845

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/devfreq/devfreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ static ssize_t trans_stat_show(struct device *dev,
17331733
for (i = 0; i < max_state; i++) {
17341734
if (len >= PAGE_SIZE - 1)
17351735
break;
1736-
if (df->freq_table[2] == df->previous_freq)
1736+
if (df->freq_table[i] == df->previous_freq)
17371737
len += sysfs_emit_at(buf, len, "*");
17381738
else
17391739
len += sysfs_emit_at(buf, len, " ");

0 commit comments

Comments
 (0)