diff options
-rw-r--r-- | drivers/acpi/battery.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index e64c76c8b726..df04f87dd491 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #define ACPI_BATTERY_HID "PNP0C0A" | 44 | #define ACPI_BATTERY_HID "PNP0C0A" |
45 | #define ACPI_BATTERY_DEVICE_NAME "Battery" | 45 | #define ACPI_BATTERY_DEVICE_NAME "Battery" |
46 | #define ACPI_BATTERY_FILE_INFO "info" | 46 | #define ACPI_BATTERY_FILE_INFO "info" |
47 | #define ACPI_BATTERY_FILE_STATUS "state" | 47 | #define ACPI_BATTERY_FILE_STATE "state" |
48 | #define ACPI_BATTERY_FILE_ALARM "alarm" | 48 | #define ACPI_BATTERY_FILE_ALARM "alarm" |
49 | #define ACPI_BATTERY_NOTIFY_STATUS 0x80 | 49 | #define ACPI_BATTERY_NOTIFY_STATUS 0x80 |
50 | #define ACPI_BATTERY_NOTIFY_INFO 0x81 | 50 | #define ACPI_BATTERY_NOTIFY_INFO 0x81 |
@@ -76,7 +76,7 @@ static struct acpi_driver acpi_battery_driver = { | |||
76 | }, | 76 | }, |
77 | }; | 77 | }; |
78 | 78 | ||
79 | struct acpi_battery_status { | 79 | struct acpi_battery_state { |
80 | acpi_integer state; | 80 | acpi_integer state; |
81 | acpi_integer present_rate; | 81 | acpi_integer present_rate; |
82 | acpi_integer remaining_capacity; | 82 | acpi_integer remaining_capacity; |
@@ -183,8 +183,8 @@ acpi_battery_get_info(struct acpi_battery *battery, | |||
183 | } | 183 | } |
184 | 184 | ||
185 | static int | 185 | static int |
186 | acpi_battery_get_status(struct acpi_battery *battery, | 186 | acpi_battery_get_state(struct acpi_battery *battery, |
187 | struct acpi_battery_status **bst) | 187 | struct acpi_battery_state **bst) |
188 | { | 188 | { |
189 | int result = 0; | 189 | int result = 0; |
190 | acpi_status status = 0; | 190 | acpi_status status = 0; |
@@ -425,7 +425,7 @@ static int acpi_battery_read_state(struct seq_file *seq, void *offset) | |||
425 | { | 425 | { |
426 | int result = 0; | 426 | int result = 0; |
427 | struct acpi_battery *battery = seq->private; | 427 | struct acpi_battery *battery = seq->private; |
428 | struct acpi_battery_status *bst = NULL; | 428 | struct acpi_battery_state *bst = NULL; |
429 | char *units = "?"; | 429 | char *units = "?"; |
430 | 430 | ||
431 | 431 | ||
@@ -449,9 +449,9 @@ static int acpi_battery_read_state(struct seq_file *seq, void *offset) | |||
449 | 449 | ||
450 | /* Battery Status (_BST) */ | 450 | /* Battery Status (_BST) */ |
451 | 451 | ||
452 | result = acpi_battery_get_status(battery, &bst); | 452 | result = acpi_battery_get_state(battery, &bst); |
453 | if (result || !bst) { | 453 | if (result || !bst) { |
454 | seq_printf(seq, "ERROR: Unable to read battery status\n"); | 454 | seq_printf(seq, "ERROR: Unable to read battery state\n"); |
455 | goto end; | 455 | goto end; |
456 | } | 456 | } |
457 | 457 | ||
@@ -621,7 +621,7 @@ static int acpi_battery_add_fs(struct acpi_device *device) | |||
621 | } | 621 | } |
622 | 622 | ||
623 | /* 'status' [R] */ | 623 | /* 'status' [R] */ |
624 | entry = create_proc_entry(ACPI_BATTERY_FILE_STATUS, | 624 | entry = create_proc_entry(ACPI_BATTERY_FILE_STATE, |
625 | S_IRUGO, acpi_device_dir(device)); | 625 | S_IRUGO, acpi_device_dir(device)); |
626 | if (!entry) | 626 | if (!entry) |
627 | return -ENODEV; | 627 | return -ENODEV; |
@@ -652,7 +652,7 @@ static int acpi_battery_remove_fs(struct acpi_device *device) | |||
652 | if (acpi_device_dir(device)) { | 652 | if (acpi_device_dir(device)) { |
653 | remove_proc_entry(ACPI_BATTERY_FILE_ALARM, | 653 | remove_proc_entry(ACPI_BATTERY_FILE_ALARM, |
654 | acpi_device_dir(device)); | 654 | acpi_device_dir(device)); |
655 | remove_proc_entry(ACPI_BATTERY_FILE_STATUS, | 655 | remove_proc_entry(ACPI_BATTERY_FILE_STATE, |
656 | acpi_device_dir(device)); | 656 | acpi_device_dir(device)); |
657 | remove_proc_entry(ACPI_BATTERY_FILE_INFO, | 657 | remove_proc_entry(ACPI_BATTERY_FILE_INFO, |
658 | acpi_device_dir(device)); | 658 | acpi_device_dir(device)); |