Skip to content

Commit 5894859

Browse files
pastaq1Naim
authored andcommitted
platform/x86: lenovo-wmi-other: Move LWMI_FAN_DIV
Later patches in this series will add additional attribute ID macros. Keep the fan defines together and permit attribute ID macros to stay together as well by moving LWMI_FAN_DIV. Reviewed-by: Rong Zhang <i@rong.moe> Tested-by: Rong Zhang <i@rong.moe> Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
1 parent cab1c65 commit 5894859

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
#define LWMI_FAN_NR 4
6969
#define LWMI_FAN_ID(x) ((x) + LWMI_FAN_ID_BASE)
7070

71+
#define LWMI_FAN_DIV 100
72+
7173
#define LWMI_ATTR_ID_FAN_RPM(x) \
7274
(FIELD_PREP(LWMI_ATTR_DEV_ID_MASK, LWMI_DEVICE_ID_FAN) | \
7375
FIELD_PREP(LWMI_ATTR_FEAT_ID_MASK, LWMI_FEATURE_ID_FAN_RPM) | \
7476
FIELD_PREP(LWMI_ATTR_TYPE_ID_MASK, LWMI_FAN_ID(x)))
7577

76-
#define LWMI_FAN_DIV 100
77-
7878
#define LWMI_OM_FW_ATTR_BASE_PATH "lenovo-wmi-other"
7979
#define LWMI_OM_HWMON_NAME "lenovo_wmi_other"
8080

0 commit comments

Comments
 (0)