diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2023-12-13 09:12:01 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-12-14 08:26:11 +0300 |
commit | 1864a2006ee1e41960b63ca63aa79fabb690e71b (patch) | |
tree | 4796bb6a81a0f5fc9987677e56ccabc65283acd3 /drivers/input/mouse/cyapa_gen3.c | |
parent | d4db8762dc4c364dce89901ed4690588ad310bfc (diff) | |
download | linux-1864a2006ee1e41960b63ca63aa79fabb690e71b.tar.xz |
Input: mouse - use sysfs_emit[_at]() instead of scnprintf()
Replace the calls to various *printf() functions with sysfs_emit() to
simplify the code.
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/202212021453578171100@zte.com.cn
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/cyapa_gen3.c')
-rw-r--r-- | drivers/input/mouse/cyapa_gen3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/cyapa_gen3.c b/drivers/input/mouse/cyapa_gen3.c index a97f4acb6452..60c83bc71d84 100644 --- a/drivers/input/mouse/cyapa_gen3.c +++ b/drivers/input/mouse/cyapa_gen3.c @@ -860,7 +860,7 @@ static ssize_t cyapa_gen3_show_baseline(struct device *dev, dev_dbg(dev, "Baseline report successful. Max: %d Min: %d\n", max_baseline, min_baseline); - ret = scnprintf(buf, PAGE_SIZE, "%d %d\n", max_baseline, min_baseline); + ret = sysfs_emit(buf, "%d %d\n", max_baseline, min_baseline); out: return ret; |