Skip to content

Commit

Permalink
hda: Implement a bit field in cmd_resend
Browse files Browse the repository at this point in the history
A ':1' bit field gives the compiler the option to squeeze it in
with other booleans, thereby optimizing memory usage.

Suggested-by: Icenowy <[email protected]>
Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
Avenger-285714 committed Jul 8, 2024
1 parent f26deae commit 7e4e566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sound/hdaudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ struct hdac_bus {
bool needs_damn_long_delay:1;
bool not_use_interrupts:1; /* prohibiting the RIRB IRQ */
bool access_sdnctl_in_dword:1; /* accessing the sdnctl register by dword */
bool cmd_resend; /* command resend */
bool cmd_resend:1; /* command resend */
bool hygon_dword_access:1;

int poll_count;
Expand Down

0 comments on commit 7e4e566

Please sign in to comment.