diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-07-20 18:19:51 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-08-03 09:49:03 -0400 |
commit | f8ef3aecabe0e386303d028d02b6e5b23ac3a566 (patch) | |
tree | f841282c45ebfb9a63019f6ffa4a9f03c3679141 /drivers/platform | |
parent | bc28596a8fe5034ef776b0be2e0bf5629a31f746 (diff) |
toshiba_acpi: rename add_device() and remove_device() to create_toshiba_proc_entries() and remove_toshiba_proc_entries()
To improve readability rename add_device() to
create_toshiba_proc_entries() and rename remove_device() to
remove_toshiba_proc_entries().
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Márton Németh <nm127@freemail.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index c8bb7eb71c69..627fc384d068 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c | |||
@@ -722,7 +722,7 @@ static const struct file_operations version_proc_fops = { | |||
722 | 722 | ||
723 | #define PROC_TOSHIBA "toshiba" | 723 | #define PROC_TOSHIBA "toshiba" |
724 | 724 | ||
725 | static void __init add_device(void) | 725 | static void __init create_toshiba_proc_entries(void) |
726 | { | 726 | { |
727 | proc_create("lcd", S_IRUGO | S_IWUSR, toshiba_proc_dir, &lcd_proc_fops); | 727 | proc_create("lcd", S_IRUGO | S_IWUSR, toshiba_proc_dir, &lcd_proc_fops); |
728 | proc_create("video", S_IRUGO | S_IWUSR, toshiba_proc_dir, &video_proc_fops); | 728 | proc_create("video", S_IRUGO | S_IWUSR, toshiba_proc_dir, &video_proc_fops); |
@@ -731,7 +731,7 @@ static void __init add_device(void) | |||
731 | proc_create("version", S_IRUGO, toshiba_proc_dir, &version_proc_fops); | 731 | proc_create("version", S_IRUGO, toshiba_proc_dir, &version_proc_fops); |
732 | } | 732 | } |
733 | 733 | ||
734 | static void remove_device(void) | 734 | static void remove_toshiba_proc_entries(void) |
735 | { | 735 | { |
736 | remove_proc_entry("lcd", toshiba_proc_dir); | 736 | remove_proc_entry("lcd", toshiba_proc_dir); |
737 | remove_proc_entry("video", toshiba_proc_dir); | 737 | remove_proc_entry("video", toshiba_proc_dir); |
@@ -905,7 +905,7 @@ static void toshiba_acpi_exit(void) | |||
905 | if (toshiba_backlight_device) | 905 | if (toshiba_backlight_device) |
906 | backlight_device_unregister(toshiba_backlight_device); | 906 | backlight_device_unregister(toshiba_backlight_device); |
907 | 907 | ||
908 | remove_device(); | 908 | remove_toshiba_proc_entries(); |
909 | 909 | ||
910 | if (toshiba_proc_dir) | 910 | if (toshiba_proc_dir) |
911 | remove_proc_entry(PROC_TOSHIBA, acpi_root_dir); | 911 | remove_proc_entry(PROC_TOSHIBA, acpi_root_dir); |
@@ -967,7 +967,7 @@ static int __init toshiba_acpi_init(void) | |||
967 | toshiba_acpi_exit(); | 967 | toshiba_acpi_exit(); |
968 | return -ENODEV; | 968 | return -ENODEV; |
969 | } else { | 969 | } else { |
970 | add_device(); | 970 | create_toshiba_proc_entries(); |
971 | } | 971 | } |
972 | 972 | ||
973 | props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; | 973 | props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; |