Commit 7e7fdab7 authored by Basavaraj Natikar's avatar Basavaraj Natikar Committed by Jiri Kosina

HID: amd_sfh: Correct the structure fields

Misinterpreted sfh_cmd_base structure member fields. Therefore, adjust
the structure member fields accordingly to reflect functionality.

Fixes: 93ce5e02 ("HID: amd_sfh: Implement SFH1.1 functionality")
Signed-off-by: default avatarBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent de466448
...@@ -33,9 +33,9 @@ struct sfh_cmd_base { ...@@ -33,9 +33,9 @@ struct sfh_cmd_base {
struct { struct {
u32 sensor_id : 4; u32 sensor_id : 4;
u32 cmd_id : 4; u32 cmd_id : 4;
u32 sub_cmd_id : 6; u32 sub_cmd_id : 8;
u32 length : 12; u32 sub_cmd_value : 12;
u32 rsvd : 5; u32 rsvd : 3;
u32 intr_disable : 1; u32 intr_disable : 1;
} cmd; } cmd;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment