PM / devfreq: Fix a typo in trans_stat
PATCH 1/1 PM / devfreq: Fix a typo in trans_stat
From: pls <[email protected]>
Fixes 4920ee6dcfaf ("PM / devfreq: Convert to use sysfs_emit_at() API")
Signed-off-by pls <[email protected]>
--- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/devfreq/devfreq.c +1 -1
@@ -1743,7 +1743,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.39.5
Hi,
Looks good to me for this patch.
But, you need to use your name instead of 'pls' on following Signed-off-by and author information.
I would like you to update your name on this patch and then better to add the some patch description
- Signed-off-by: pls <[email protected]>
Thanks,
Quoted 26 lines · On Sat, Feb 8, 2025 at 11:29 AM <[email protected]> wrote:
From: pls <[email protected]>
Fixes 4920ee6dcfaf ("PM / devfreq: Convert to use sysfs_emit_at() API")Signed-off-by pls <[email protected]>--- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/devfreq/devfreq.c +1
-2@@ -1743,7 +1743,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.39.5
Signature · 3 lines
Best Regards, Chanwoo Choi Samsung Electronics