aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/thinkpad_acpi.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/thinkpad_acpi.h')
-rw-r--r--drivers/misc/thinkpad_acpi.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/drivers/misc/thinkpad_acpi.h b/drivers/misc/thinkpad_acpi.h
index 8b72061d8f0e..4d3ab4015ff2 100644
--- a/drivers/misc/thinkpad_acpi.h
+++ b/drivers/misc/thinkpad_acpi.h
@@ -173,6 +173,22 @@ struct ibm_init_struct {
173 struct ibm_struct *data; 173 struct ibm_struct *data;
174}; 174};
175 175
176static struct {
177#ifdef CONFIG_THINKPAD_ACPI_BAY
178 u16 bay_status:1;
179 u16 bay_eject:1;
180 u16 bay_status2:1;
181 u16 bay_eject2:1;
182#endif
183 u16 bluetooth:1;
184 u16 hotkey:1;
185 u16 hotkey_mask:1;
186 u16 light:1;
187 u16 light_status:1;
188 u16 wan:1;
189 u16 fan_ctrl_status_undef:1;
190} tp_features;
191
176static struct list_head tpacpi_all_drivers; 192static struct list_head tpacpi_all_drivers;
177 193
178static struct ibm_init_struct ibms_init[]; 194static struct ibm_init_struct ibms_init[];
@@ -193,9 +209,6 @@ static int thinkpad_acpi_driver_read(char *p);
193 */ 209 */
194 210
195#ifdef CONFIG_THINKPAD_ACPI_BAY 211#ifdef CONFIG_THINKPAD_ACPI_BAY
196static int bay_status_supported, bay_eject_supported;
197static int bay_status2_supported, bay_eject2_supported;
198
199static acpi_handle bay_handle, bay_ej_handle; 212static acpi_handle bay_handle, bay_ej_handle;
200static acpi_handle bay2_handle, bay2_ej_handle; 213static acpi_handle bay2_handle, bay2_ej_handle;
201 214
@@ -220,8 +233,6 @@ static int beep_write(char *buf);
220 * Bluetooth subdriver 233 * Bluetooth subdriver
221 */ 234 */
222 235
223static int bluetooth_supported;
224
225static int bluetooth_init(struct ibm_init_struct *iibm); 236static int bluetooth_init(struct ibm_init_struct *iibm);
226static int bluetooth_status(void); 237static int bluetooth_status(void);
227static int bluetooth_read(char *p); 238static int bluetooth_read(char *p);
@@ -311,7 +322,6 @@ enum fan_control_commands {
311static enum fan_status_access_mode fan_status_access_mode; 322static enum fan_status_access_mode fan_status_access_mode;
312static enum fan_control_access_mode fan_control_access_mode; 323static enum fan_control_access_mode fan_control_access_mode;
313static enum fan_control_commands fan_control_commands; 324static enum fan_control_commands fan_control_commands;
314static int fan_control_status_known;
315static u8 fan_control_initial_status; 325static u8 fan_control_initial_status;
316static int fan_watchdog_maxinterval; 326static int fan_watchdog_maxinterval;
317 327
@@ -340,8 +350,6 @@ static int fan_write_cmd_watchdog(const char *cmd, int *rc);
340 * Hotkey subdriver 350 * Hotkey subdriver
341 */ 351 */
342 352
343static int hotkey_supported;
344static int hotkey_mask_supported;
345static int hotkey_orig_status; 353static int hotkey_orig_status;
346static int hotkey_orig_mask; 354static int hotkey_orig_mask;
347 355
@@ -382,8 +390,6 @@ static int led_write(char *buf);
382 * Light (thinklight) subdriver 390 * Light (thinklight) subdriver
383 */ 391 */
384 392
385static int light_supported;
386static int light_status_supported;
387static acpi_handle lght_handle, ledb_handle; 393static acpi_handle lght_handle, ledb_handle;
388 394
389static int light_init(struct ibm_init_struct *iibm); 395static int light_init(struct ibm_init_struct *iibm);
@@ -453,8 +459,6 @@ static int volume_write(char *buf);
453 * Wan subdriver 459 * Wan subdriver
454 */ 460 */
455 461
456static int wan_supported;
457
458static int wan_init(struct ibm_init_struct *iibm); 462static int wan_init(struct ibm_init_struct *iibm);
459static int wan_status(void); 463static int wan_status(void);
460static int wan_read(char *p); 464static int wan_read(char *p);