]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: qcom: hidma: use sysfs_emit() in sysfs show callbacks
authorHungyu Lin <dennylin0707@gmail.com>
Sun, 7 Jun 2026 16:31:19 +0000 (16:31 +0000)
committerVinod Koul <vkoul@kernel.org>
Thu, 11 Jun 2026 05:32:13 +0000 (11:02 +0530)
commit26f926b44dbfc035d5ba0ccfc4387a40aa9947c1
tree8e73ca57abb6f5aaa4c0f4e01197c1a68d77c807
parentdf0c2dc68770cf43f15df40b184df030b850ea05
dmaengine: qcom: hidma: use sysfs_emit() in sysfs show callbacks

Replace sprintf() and strlen() patterns in sysfs show callbacks
with sysfs_emit().

sysfs_emit() is the preferred helper for formatting sysfs output
and simplifies the implementation.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20260607163119.78717-1-dennylin0707@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/qcom/hidma.c
drivers/dma/qcom/hidma_mgmt_sys.c