diff options
author | Huisong Li <lihuisong@huawei.com> | 2025-03-14 18:01:43 +0800 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2025-03-14 18:03:55 +0100 |
commit | 262666c04be6afa8f15b6c318596b54c37499cda (patch) | |
tree | 6d9ce7a95a56fcbe7c84501315f57ba24c278dcb | |
parent | cfe614f5225bfbdfbcd7917533fc3c811f98169e (diff) |
soc: hisilicon: kunpeng_hccs: Fix incorrect string assembly
String assembly should use sysfs_emit_at() instead of sysfs_emit().
Fixes: 23fe8112a231 ("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>
-rw-r--r-- | drivers/soc/hisilicon/kunpeng_hccs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c index 8aa8dec14911..444a8f59b7da 100644 --- a/drivers/soc/hisilicon/kunpeng_hccs.c +++ b/drivers/soc/hisilicon/kunpeng_hccs.c @@ -1539,8 +1539,8 @@ static ssize_t used_types_show(struct kobject *kobj, u16 i; for (i = 0; i < hdev->used_type_num - 1; i++) - len += sysfs_emit(&buf[len], "%s ", hdev->type_name_maps[i].name); - len += sysfs_emit(&buf[len], "%s\n", hdev->type_name_maps[i].name); + len += sysfs_emit_at(buf, len, "%s ", hdev->type_name_maps[i].name); + len += sysfs_emit_at(buf, len, "%s\n", hdev->type_name_maps[i].name); return len; } |