* [PATCH v3 1/2] platform/x86: intel: wmi: Use sysfs_emit in sbl-fw-update
@ 2026-08-22 17:40 svav2021
2026-08-22 17:40 ` [PATCH v3 2/2] platform/x86: intel: wmi: Remove redundant callbacks svav2021
2026-09-17 14:50 ` [PATCH v3 1/2] platform/x86: intel: wmi: Use sysfs_emit in sbl-fw-update Ilpo Järvinen
0 siblings, 2 replies; 3+ messages in thread
From: svav2021 @ 2026-08-22 17:40 UTC (permalink / raw)
To: hansg, ilpo.jarvinen; +Cc: platform-driver-x86, linux-kernel, Arav Verma
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.
---
v3: Resending as v3 due to git send-email formatting error, no code changes have been made.
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v3 2/2] platform/x86: intel: wmi: Remove redundant callbacks
2026-08-22 17:40 [PATCH v3 1/2] platform/x86: intel: wmi: Use sysfs_emit in sbl-fw-update svav2021
@ 2026-08-22 17:40 ` svav2021
2026-09-17 14:50 ` [PATCH v3 1/2] platform/x86: intel: wmi: Use sysfs_emit in sbl-fw-update Ilpo Järvinen
1 sibling, 0 replies; 3+ messages in thread
From: svav2021 @ 2026-08-22 17:40 UTC (permalink / raw)
To: hansg, ilpo.jarvinen; +Cc: platform-driver-x86, linux-kernel, Arav Verma
From: Arav Verma <svav2021@gmail.com>
Removed redundant .probe and .remove callbacks from
wmi_driver struct, as they were print-only and unnecessary
---
v3: Resending as v3 due to git send-email formatting error, no code changes have been made.
drivers/platform/x86/intel/wmi/sbl-fw-update.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/drivers/platform/x86/intel/wmi/sbl-fw-update.c b/drivers/platform/x86/intel/wmi/sbl-fw-update.c
index cfef71f4f3284..7e07cfab227c8 100644
--- a/drivers/platform/x86/intel/wmi/sbl-fw-update.c
+++ b/drivers/platform/x86/intel/wmi/sbl-fw-update.c
@@ -93,18 +93,6 @@ static struct attribute *firmware_update_attrs[] = {
};
ATTRIBUTE_GROUPS(firmware_update);
-static int intel_wmi_sbl_fw_update_probe(struct wmi_device *wdev,
- const void *context)
-{
- dev_info(&wdev->dev, "Slim Bootloader signaling driver attached\n");
- return 0;
-}
-
-static void intel_wmi_sbl_fw_update_remove(struct wmi_device *wdev)
-{
- dev_info(&wdev->dev, "Slim Bootloader signaling driver removed\n");
-}
-
static const struct wmi_device_id intel_wmi_sbl_id_table[] = {
{ .guid_string = INTEL_WMI_SBL_GUID },
{}
@@ -116,8 +104,6 @@ static struct wmi_driver intel_wmi_sbl_fw_update_driver = {
.name = "intel-wmi-sbl-fw-update",
.dev_groups = firmware_update_groups,
},
- .probe = intel_wmi_sbl_fw_update_probe,
- .remove = intel_wmi_sbl_fw_update_remove,
.id_table = intel_wmi_sbl_id_table,
.no_singleton = true,
};
--
2.47.3
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v3 1/2] platform/x86: intel: wmi: Use sysfs_emit in sbl-fw-update
2026-08-22 17:40 [PATCH v3 1/2] platform/x86: intel: wmi: Use sysfs_emit in sbl-fw-update svav2021
2026-08-22 17:40 ` [PATCH v3 2/2] platform/x86: intel: wmi: Remove redundant callbacks svav2021
@ 2026-09-17 14:50 ` Ilpo Järvinen
1 sibling, 0 replies; 3+ messages in thread
From: Ilpo Järvinen @ 2026-09-17 14:50 UTC (permalink / raw)
To: Arav Verma; +Cc: Hans de Goede, platform-driver-x86, LKML
On Sat, 22 Aug 2026, svav2021@gmail.com wrote:
> 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.
Hi,
Unfortunately, we cannot accept changes that are not signed off. Please
see Documentation/process/submitting-patches.rst for more information what
you certify when signing off a patch and how to do that.
--
i.
> ---
> v3: Resending as v3 due to git send-email formatting error, no code changes have been made.
>
> 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,
>
--
i.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-17 14:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-22 17:40 [PATCH v3 1/2] platform/x86: intel: wmi: Use sysfs_emit in sbl-fw-update svav2021
2026-08-22 17:40 ` [PATCH v3 2/2] platform/x86: intel: wmi: Remove redundant callbacks svav2021
2026-09-17 14:50 ` [PATCH v3 1/2] platform/x86: intel: wmi: Use sysfs_emit in sbl-fw-update Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®