From: Basavaraj Natikar Date: Tue, 11 Apr 2023 16:10:24 +0000 (+0530) Subject: HID: amd_sfh: Correct the structure fields X-Git-Tag: v6.6.7~2987^2~10^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e7fdab79899f62de39c9280fb78f3d3b02ac207;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jiri Kosina --- 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 ae47a36..a3e0ec2 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; };