]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: hda - Optimize bitfield usage in struct hda_codec
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Aug 2012 23:39:25 +0000 (16:39 -0700)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Aug 2012 14:50:40 +0000 (07:50 -0700)
Move up a few bitfields to be packed into a single int.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.h

index 7e1709cb89956f307c3715cc742e7769dd8bf44a..9ac477334d2d54cd3691db25973470932dd0bd38 100644 (file)
@@ -867,6 +867,8 @@ struct hda_codec {
        unsigned int epss:1;            /* supporting EPSS? */
 #ifdef CONFIG_PM
        unsigned int power_on :1;       /* current (global) power-state */
+       unsigned int d3_stop_clk:1;     /* support D3 operation without BCLK */
+       unsigned int d3_stop_clk_ok:1; /* BCLK can stop */
        int power_transition;   /* power-state in transition */
        int power_count;        /* current (global) power refcount */
        struct delayed_work power_work; /* delayed task for powerdown */
@@ -874,9 +876,6 @@ struct hda_codec {
        unsigned long power_off_acct;
        unsigned long power_jiffies;
        spinlock_t power_lock;
-
-       unsigned int d3_stop_clk:1;     /* support D3 operation without BCLK */
-       unsigned int d3_stop_clk_ok:1; /* BCLK can stop */
 #endif
 
        /* codec-specific additional proc output */