aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/thinkpad_acpi.h
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2007-04-21 10:08:35 -0400
committerLen Brown <len.brown@intel.com>2007-04-21 23:30:34 -0400
commit926411779287ad4f7013c9d80aa44fd131b70cd9 (patch)
treeaf58ff9542651deb712b3756af559dbb97fee86f /drivers/misc/thinkpad_acpi.h
parent0dcef77c5b889338811d35e786b42046259fe433 (diff)
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>
Diffstat (limited to 'drivers/misc/thinkpad_acpi.h')
-rw-r--r--drivers/misc/thinkpad_acpi.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/misc/thinkpad_acpi.h b/drivers/misc/thinkpad_acpi.h
index 20203981cb7a..8b72061d8f0e 100644
--- a/drivers/misc/thinkpad_acpi.h
+++ b/drivers/misc/thinkpad_acpi.h
@@ -157,12 +157,13 @@ struct ibm_struct {
157 157
158 struct list_head all_drivers; 158 struct list_head all_drivers;
159 159
160 int driver_registered; 160 struct {
161 int proc_created; 161 u8 driver_registered:1;
162 int init_called; 162 u8 proc_created:1;
163 int notify_installed; 163 u8 init_called:1;
164 164 u8 notify_installed:1;
165 int experimental; 165 u8 experimental:1;
166 } flags;
166}; 167};
167 168
168struct ibm_init_struct { 169struct ibm_init_struct {