aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sleep/proc.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@suze.cz>2005-08-05 00:37:45 -0400
committerLen Brown <len.brown@intel.com>2005-08-05 00:38:58 -0400
commitc65ade4dc8b486e8c8b9b0a6399789a5428e2039 (patch)
treeb12aa0cce89523e67e9c5a74343e195c797636d5 /drivers/acpi/sleep/proc.c
parent1d492eb41371d9a5145651e8eb64bea1042a4057 (diff)
[ACPI] whitespace
Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/sleep/proc.c')
-rw-r--r--drivers/acpi/sleep/proc.c34
1 files changed, 10 insertions, 24 deletions
diff --git a/drivers/acpi/sleep/proc.c b/drivers/acpi/sleep/proc.c
index 1be99f0996d6..a962fc24f704 100644
--- a/drivers/acpi/sleep/proc.c
+++ b/drivers/acpi/sleep/proc.c
@@ -13,13 +13,6 @@
13 13
14#include "sleep.h" 14#include "sleep.h"
15 15
16#ifdef CONFIG_ACPI_SLEEP_PROC_SLEEP
17#define ACPI_SYSTEM_FILE_SLEEP "sleep"
18#endif
19
20#define ACPI_SYSTEM_FILE_ALARM "alarm"
21#define ACPI_SYSTEM_FILE_WAKEUP_DEVICE "wakeup"
22
23#define _COMPONENT ACPI_SYSTEM_COMPONENT 16#define _COMPONENT ACPI_SYSTEM_COMPONENT
24ACPI_MODULE_NAME ("sleep") 17ACPI_MODULE_NAME ("sleep")
25 18
@@ -378,14 +371,10 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset)
378 if (!dev->wakeup.flags.valid) 371 if (!dev->wakeup.flags.valid)
379 continue; 372 continue;
380 spin_unlock(&acpi_device_lock); 373 spin_unlock(&acpi_device_lock);
381 if (dev->wakeup.flags.run_wake) 374 seq_printf(seq, "%4s %4d %s%8s\n",
382 seq_printf(seq, "%4s %4d %8s\n", 375 dev->pnp.bus_id, (u32) dev->wakeup.sleep_state,
383 dev->pnp.bus_id, (u32) dev->wakeup.sleep_state, 376 dev->wakeup.flags.run_wake ? "*" : "",
384 dev->wakeup.state.enabled ? "*enabled" : "*disabled"); 377 dev->wakeup.state.enabled ? "enabled" : "disabled");
385 else
386 seq_printf(seq, "%4s %4d %8s\n",
387 dev->pnp.bus_id, (u32) dev->wakeup.sleep_state,
388 dev->wakeup.state.enabled ? "enabled" : "disabled");
389 spin_lock(&acpi_device_lock); 378 spin_lock(&acpi_device_lock);
390 } 379 }
391 spin_unlock(&acpi_device_lock); 380 spin_unlock(&acpi_device_lock);
@@ -486,28 +475,25 @@ static u32 rtc_handler(void * context)
486 475
487static int acpi_sleep_proc_init(void) 476static int acpi_sleep_proc_init(void)
488{ 477{
489 struct proc_dir_entry *entry = NULL; 478 struct proc_dir_entry *entry = NULL;
490 479
491 if (acpi_disabled) 480 if (acpi_disabled)
492 return 0; 481 return 0;
493 482
494#ifdef CONFIG_ACPI_SLEEP_PROC_SLEEP 483#ifdef CONFIG_ACPI_SLEEP_PROC_SLEEP
495 /* 'sleep' [R/W]*/ 484 /* 'sleep' [R/W] */
496 entry = create_proc_entry(ACPI_SYSTEM_FILE_SLEEP, 485 entry = create_proc_entry("sleep", S_IFREG|S_IRUGO|S_IWUSR, acpi_root_dir);
497 S_IFREG|S_IRUGO|S_IWUSR, acpi_root_dir);
498 if (entry) 486 if (entry)
499 entry->proc_fops = &acpi_system_sleep_fops; 487 entry->proc_fops = &acpi_system_sleep_fops;
500#endif 488#endif
501 489
502 /* 'alarm' [R/W] */ 490 /* 'alarm' [R/W] */
503 entry = create_proc_entry(ACPI_SYSTEM_FILE_ALARM, 491 entry = create_proc_entry("alarm", S_IFREG|S_IRUGO|S_IWUSR, acpi_root_dir);
504 S_IFREG|S_IRUGO|S_IWUSR, acpi_root_dir);
505 if (entry) 492 if (entry)
506 entry->proc_fops = &acpi_system_alarm_fops; 493 entry->proc_fops = &acpi_system_alarm_fops;
507 494
508 /* 'wakeup device' [R/W]*/ 495 /* 'wakeup device' [R/W] */
509 entry = create_proc_entry(ACPI_SYSTEM_FILE_WAKEUP_DEVICE, 496 entry = create_proc_entry("wakeup", S_IFREG|S_IRUGO|S_IWUSR, acpi_root_dir);
510 S_IFREG|S_IRUGO|S_IWUSR, acpi_root_dir);
511 if (entry) 497 if (entry)
512 entry->proc_fops = &acpi_system_wakeup_device_fops; 498 entry->proc_fops = &acpi_system_wakeup_device_fops;
513 499