fpga: m10bmc-sec: switch show_canceled_csk() to using sysfs_emit()

Switch show_canceled_csk() to use the proper sysfs_emit("%*pbl").

Reviewed-by: Russ Weight <russ.weight@linux.dev>
Suggested-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Yury Norov <ynorov@nvidia.com>
[ Yilun: Remove unnecessary header file ]
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20260303200842.124996-6-ynorov@nvidia.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
This commit is contained in:
Yury Norov
2026-03-25 14:57:26 +08:00
committed by Xu Yilun
parent 26e5e1be2e
commit f63ddbcc32
+1 -1
View File
@@ -183,7 +183,7 @@ show_canceled_csk(struct device *dev, u32 addr, char *buf)
bitmap_from_arr32(csk_map, csk32, CSK_BIT_LEN);
bitmap_complement(csk_map, csk_map, CSK_BIT_LEN);
return bitmap_print_to_pagebuf(1, buf, csk_map, CSK_BIT_LEN);
return sysfs_emit(buf, "%*pbl\n", CSK_BIT_LEN, csk_map);
}
#define DEVICE_ATTR_SEC_CSK_RO(_name) \