Skip to content
Snippets Groups Projects
Commit aaf51613 authored by Weiyi Wang's avatar Weiyi Wang Committed by GitHub
Browse files

Merge pull request #2863 from wwylele/pad-state-zero

HID: zero unused PadState bits
parents 2415bad9 599de29e
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ namespace HID { ...@@ -24,7 +24,7 @@ namespace HID {
*/ */
struct PadState { struct PadState {
union { union {
u32 hex; u32 hex{};
BitField<0, 1, u32> a; BitField<0, 1, u32> a;
BitField<1, 1, u32> b; BitField<1, 1, u32> b;
......
...@@ -18,7 +18,7 @@ namespace Service { ...@@ -18,7 +18,7 @@ namespace Service {
namespace IR { namespace IR {
union PadState { union PadState {
u32_le hex; u32_le hex{};
BitField<14, 1, u32_le> zl; BitField<14, 1, u32_le> zl;
BitField<15, 1, u32_le> zr; BitField<15, 1, u32_le> zr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment