mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
PM / devfreq: Fix a index typo in trans_stat
Fixes: 4920ee6dcf ("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>
This commit is contained in:
parent
bab7834c03
commit
78c5845fbb
1 changed files with 1 additions and 1 deletions
|
|
@ -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, " ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue