diff options
author | Cristian Ciocaltea <cristian.ciocaltea@collabora.com> | 2025-06-25 00:56:53 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2025-09-17 11:33:43 +0200 |
commit | d7b744fa977b4c402c25ba723b4981a8420ad15a (patch) | |
tree | 93e38e6c2e16c94e80887c08a673edcea395b40e /rust/helpers/bitmap.c | |
parent | 400c6bbc7b48a011c18c765cd1fbb396113e2f63 (diff) |
HID: playstation: Redefine DualSense input report status field
The 'status' member of struct dualsense_input_report is currently used
to store just the battery data, despite the fact that hardware is
capable to report two extra bytes of status information.
In preparation to make use of some of the additional data, redefine the
field type as a 3-byte array.
Moreover, to preserve consistency with the related DS_STATUS[0..2]_*
registers in datasheet, rename DS_STATUS_* bitfield macros accordingly.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Benjamin Tissoires <bentiss@kernel.org>
Tested-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'rust/helpers/bitmap.c')
0 files changed, 0 insertions, 0 deletions