[PATCH linux-next] backlight: lp8788: use sysfs_emit() to instead of scnprintf()
Daniel Thompson
daniel.thompson at linaro.org
Mon Sep 26 13:27:54 UTC 2022
On Fri, Sep 23, 2022 at 06:35:33AM +0000, cgel.zte at gmail.com wrote:
> From: ye xingchen <ye.xingchen at zte.com.cn>
>
> Replace the open-code with sysfs_emit() to simplify the code.
>
> Signed-off-by: ye xingchen <ye.xingchen at zte.com.cn>
> ---
> drivers/video/backlight/lp8788_bl.c | 2 +-
This one has the subject right and is a good change. However I'd still
prefer it as a single patchset that fixes *all* instances of this code
pattern.
Daniel.
More information about the dri-devel
mailing list