Re: [PATCH] drm/i915: use sysfs_emit() to instead of scnprintf()

2022-12-05 Thread Bagas Sanjaya
On Mon, Dec 05, 2022 at 12:50:53PM +0200, Jani Nikula wrote: > On Thu, 01 Dec 2022, wrote: > > From: ye xingchen > > > > Replace the open-code with sysfs_emit() to simplify the code. > > I was going to push this, but noticed the function has a third > scnprintf(), and the last two play together

Re: [PATCH] drm/i915: use sysfs_emit() to instead of scnprintf()

2022-12-05 Thread Jani Nikula
On Thu, 01 Dec 2022, wrote: > From: ye xingchen > > Replace the open-code with sysfs_emit() to simplify the code. I was going to push this, but noticed the function has a third scnprintf(), and the last two play together with count. It would be confusing to have a mix of sysfs_emit() and scnprin

[PATCH] drm/i915: use sysfs_emit() to instead of scnprintf()

2022-11-30 Thread ye.xingchen
From: ye xingchen Replace the open-code with sysfs_emit() to simplify the code. Signed-off-by: ye xingchen --- drivers/gpu/drm/i915/i915_mitigations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_mitigations.c b/drivers/gpu/drm/i915/i915_mi