Skip to content

Commit bbf0dec

Browse files
basuamdJiri Kosina
authored andcommitted
HID: amd_sfh: Update HPD sensor structure elements
HPD sensor data is not populating properly because of wrong order of HPD sensor structure elements. So update the order of structure elements to match the HPD sensor data received from the firmware. Fixes: 24a31ea ("HID: amd_sfh: Add initial support for HPD sensor") Co-developed-by: Akshata MukundShetty <[email protected]> Signed-off-by: Akshata MukundShetty <[email protected]> Signed-off-by: Basavaraj Natikar <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 333861f commit bbf0dec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/hid/amd-sfh-hid/amd_sfh_pcie.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ enum mem_use_type {
9090
struct hpd_status {
9191
union {
9292
struct {
93-
u32 human_presence_report : 4;
94-
u32 human_presence_actual : 4;
95-
u32 probablity : 8;
9693
u32 object_distance : 16;
94+
u32 probablity : 8;
95+
u32 human_presence_actual : 4;
96+
u32 human_presence_report : 4;
9797
} shpd;
9898
u32 val;
9999
};

0 commit comments

Comments
 (0)