ACPI: thinkpad-acpi: use bitfields to hold subdriver flags

Save some memory by using bitfields to hold boolean flags for the
subdrivers.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Henrique de Moraes Holschuh
2007-04-21 11:08:35 -03:00
committed by Len Brown
parent 0dcef77c5b
commit 9264117792
2 changed files with 23 additions and 22 deletions

View File

@@ -157,12 +157,13 @@ struct ibm_struct {
struct list_head all_drivers;
int driver_registered;
int proc_created;
int init_called;
int notify_installed;
int experimental;
struct {
u8 driver_registered:1;
u8 proc_created:1;
u8 init_called:1;
u8 notify_installed:1;
u8 experimental:1;
} flags;
};
struct ibm_init_struct {