]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86: lenovo-wmi-other: Rename LWMI_OM_FW_ATTR_BASE_PATH
authorDerek J. Clark <derekjohn.clark@gmail.com>
Wed, 20 May 2026 06:07:36 +0000 (06:07 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 28 May 2026 11:17:43 +0000 (14:17 +0300)
In the next patch a power supply extension is added which requires
a name attribute. Instead of creating another const macro with the
same information, rename LWMI_OM_FW_ATTR_BASE_PATH to
LWMI_OM_SYSFS_NAME.

Reviewed-by: Rong Zhang <i@rong.moe>
Tested-by: Rong Zhang <i@rong.moe>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Link: https://patch.msgid.link/20260520060740.119554-4-derekjohn.clark@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/lenovo/wmi-other.c

index 9a6183bbcc920351c68d031eb75cf20c516280f5..beb92c7cff257e3d9f5fe1f569762a1a80c5656c 100644 (file)
@@ -92,7 +92,7 @@ enum lwmi_feature_id_gpu {
        lwmi_attr_id(LWMI_DEVICE_ID_FAN, LWMI_FEATURE_ID_FAN_RPM, \
                     LWMI_GZ_THERMAL_MODE_NONE, LWMI_FAN_ID(x))
 
-#define LWMI_OM_FW_ATTR_BASE_PATH "lenovo-wmi-other"
+#define LWMI_OM_SYSFS_NAME "lenovo-wmi-other"
 #define LWMI_OM_HWMON_NAME "lenovo_wmi_other"
 
 static DEFINE_IDA(lwmi_om_ida);
@@ -1138,8 +1138,7 @@ static void lwmi_om_fw_attr_add(struct lwmi_om_priv *priv)
 
        priv->fw_attr_dev = device_create(&firmware_attributes_class, NULL,
                                          MKDEV(0, 0), NULL, "%s-%u",
-                                         LWMI_OM_FW_ATTR_BASE_PATH,
-                                         priv->ida_id);
+                                         LWMI_OM_SYSFS_NAME, priv->ida_id);
        if (IS_ERR(priv->fw_attr_dev)) {
                err = PTR_ERR(priv->fw_attr_dev);
                goto err_free_ida;