Skip to content

Commit fbce680

Browse files
pastaq1Naim
authored andcommitted
platform/x86: lenovo-wmi-other: Rename LWMI_OM_FW_ATTR_BASE_PATH
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>
1 parent c8d15ab commit fbce680

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/platform/x86/lenovo/wmi-other.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ enum lwmi_feature_id_gpu {
9191
lwmi_attr_id(LWMI_DEVICE_ID_FAN, LWMI_FEATURE_ID_FAN_RPM, \
9292
LWMI_GZ_THERMAL_MODE_NONE, LWMI_FAN_ID(x))
9393

94-
#define LWMI_OM_FW_ATTR_BASE_PATH "lenovo-wmi-other"
94+
#define LWMI_OM_SYSFS_NAME "lenovo-wmi-other"
9595
#define LWMI_OM_HWMON_NAME "lenovo_wmi_other"
9696

9797
static DEFINE_IDA(lwmi_om_ida);
@@ -1123,8 +1123,7 @@ static void lwmi_om_fw_attr_add(struct lwmi_om_priv *priv)
11231123

11241124
priv->fw_attr_dev = device_create(&firmware_attributes_class, NULL,
11251125
MKDEV(0, 0), NULL, "%s-%u",
1126-
LWMI_OM_FW_ATTR_BASE_PATH,
1127-
priv->ida_id);
1126+
LWMI_OM_SYSFS_NAME, priv->ida_id);
11281127
if (IS_ERR(priv->fw_attr_dev)) {
11291128
err = PTR_ERR(priv->fw_attr_dev);
11301129
goto err_free_ida;

0 commit comments

Comments
 (0)