Skip to content

Commit 4823b95

Browse files
pastaq1Naim
authored andcommitted
platform/x86: lenovo-wmi-other: Fix tunable_attr_01 struct members
In struct tunable_attr_01 the capdata pointer is unused and the size of the id members is u32 when it should be u8. Fix these prior to adding additional members. No functional change intended. Fixes: e1a5fe6 ("platform/x86: Add Lenovo Capability Data 01 WMI Driver") Cc: stable@vger.kernel.org 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 bfe4a3c commit 4823b95

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,10 @@ static void lwmi_om_fan_info_collect_cd_fan(struct device *dev, struct cd_list *
546546
/* ======== fw_attributes (component: lenovo-wmi-capdata 01) ======== */
547547

548548
struct tunable_attr_01 {
549-
struct capdata01 *capdata;
550549
struct device *dev;
551-
u32 feature_id;
552-
u32 device_id;
553-
u32 type_id;
550+
u8 feature_id;
551+
u8 device_id;
552+
u8 type_id;
554553
};
555554

556555
static struct tunable_attr_01 ppt_pl1_spl = {

0 commit comments

Comments
 (0)