mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
HID: amd_sfh: Update HPD sensor structure elements
[ Upstream commitbbf0dec306
] 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:24a31ea949
("HID: amd_sfh: Add initial support for HPD sensor") Co-developed-by: Akshata MukundShetty <akshata.mukundshetty@amd.com> Signed-off-by: Akshata MukundShetty <akshata.mukundshetty@amd.com> Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Signed-off-by: Jiri Kosina <jkosina@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ff4dd05a94
commit
c6a05e45de
1 changed files with 3 additions and 3 deletions
|
@ -89,10 +89,10 @@ enum mem_use_type {
|
|||
struct hpd_status {
|
||||
union {
|
||||
struct {
|
||||
u32 human_presence_report : 4;
|
||||
u32 human_presence_actual : 4;
|
||||
u32 probablity : 8;
|
||||
u32 object_distance : 16;
|
||||
u32 probablity : 8;
|
||||
u32 human_presence_actual : 4;
|
||||
u32 human_presence_report : 4;
|
||||
} shpd;
|
||||
u32 val;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue