From: svav2021@gmail.com
To: hansg@kernel.org, ilpo.jarvinen@linux.intel.com
Cc: platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, Arav Verma <svav2021@gmail.com>
Subject: [PATCH 1/2] platform/x86: intel: wmi: Use sysfs_emit in sbl-fw-update
Date: Tue, 18 Aug 2026 23:42:50 -0500 [thread overview]
Message-ID: <20260819044313.335043-1-svav2021@gmail.com> (raw)
From: Arav Verma <svav2021@gmail.com>
Modernize firmware_update_request_show by replacing legacy
sprintf() call with sysfs_emit. When altering string,
corrected format specified from %d to %u to match u32 type of
target variable.
---
drivers/platform/x86/intel/wmi/sbl-fw-update.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/x86/intel/wmi/sbl-fw-update.c b/drivers/platform/x86/intel/wmi/sbl-fw-update.c
index 62c9c7f1842ba..cfef71f4f3284 100644
--- a/drivers/platform/x86/intel/wmi/sbl-fw-update.c
+++ b/drivers/platform/x86/intel/wmi/sbl-fw-update.c
@@ -61,7 +61,7 @@ static ssize_t firmware_update_request_show(struct device *dev,
if (ret)
return ret;
- return sprintf(buf, "%d\n", val);
+ return sysfs_emit(buf, "%u\n", val);
}
static ssize_t firmware_update_request_store(struct device *dev,
--
2.47.3
next reply other threads:[~2026-08-19 4:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-19 4:42 svav2021 [this message]
2026-08-19 4:42 ` [PATCH 2/2] platform/x86: intel: wmi: Remove redundant callbacks svav2021
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260819044313.335043-1-svav2021@gmail.com \
--to=svav2021@gmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.