Skip to content

Commit 262666c

Browse files
LiHuiSong1arndb
authored andcommitted
soc: hisilicon: kunpeng_hccs: Fix incorrect string assembly
String assembly should use sysfs_emit_at() instead of sysfs_emit(). Fixes: 23fe811 ("soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs") Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Huisong Li <lihuisong@huawei.com> Link: https://lore.kernel.org/r/20250314100143.3377268-1-lihuisong@huawei.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent cfe614f commit 262666c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/soc/hisilicon/kunpeng_hccs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,8 +1539,8 @@ static ssize_t used_types_show(struct kobject *kobj,
15391539
u16 i;
15401540

15411541
for (i = 0; i < hdev->used_type_num - 1; i++)
1542-
len += sysfs_emit(&buf[len], "%s ", hdev->type_name_maps[i].name);
1543-
len += sysfs_emit(&buf[len], "%s\n", hdev->type_name_maps[i].name);
1542+
len += sysfs_emit_at(buf, len, "%s ", hdev->type_name_maps[i].name);
1543+
len += sysfs_emit_at(buf, len, "%s\n", hdev->type_name_maps[i].name);
15441544

15451545
return len;
15461546
}

0 commit comments

Comments
 (0)