diff options
author | 2023-04-11 21:40:24 +0530 | |
---|---|---|
committer | 2023-04-13 15:55:22 +0200 | |
commit | 7e7fdab79899f62de39c9280fb78f3d3b02ac207 (patch) | |
tree | 69434dc284b8c675a8c61668ddaeb068a72189bb /drivers/hid/amd-sfh-hid | |
parent | Merge tag 'for-linus-2023041201' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
download | linux-7e7fdab79899f62de39c9280fb78f3d3b02ac207.tar.gz linux-7e7fdab79899f62de39c9280fb78f3d3b02ac207.tar.bz2 linux-7e7fdab79899f62de39c9280fb78f3d3b02ac207.zip |
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: 93ce5e0231d7 ("HID: amd_sfh: Implement SFH1.1 functionality")
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/amd-sfh-hid')
-rw-r--r-- | drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.h b/drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.h index ae47a369dc05..a3e0ec289e3f 100644 --- a/drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.h +++ b/drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.h @@ -33,9 +33,9 @@ struct sfh_cmd_base { struct { u32 sensor_id : 4; u32 cmd_id : 4; - u32 sub_cmd_id : 6; - u32 length : 12; - u32 rsvd : 5; + u32 sub_cmd_id : 8; + u32 sub_cmd_value : 12; + u32 rsvd : 3; u32 intr_disable : 1; } cmd; }; |