aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/dock.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-10-24 12:24:42 -0400
committerLen Brown <len.brown@intel.com>2008-02-07 03:33:23 -0500
commite5685b9d35c2cc0a98425b05df30cb837dd1e632 (patch)
tree7f10940d8bdaa18cd806d42a3fdb63cfefc47f37 /drivers/acpi/dock.c
parent87ecd5cddaa37f057d8d8c2813e1b748b1804423 (diff)
ACPI: misc cleanups
This patch contains the following possible cleanups: - make the following needlessly global code static: - drivers/acpi/bay.c:dev_attr_eject - drivers/acpi/bay.c:dev_attr_present - drivers/acpi/dock.c:dev_attr_docked - drivers/acpi/dock.c:dev_attr_flags - drivers/acpi/dock.c:dev_attr_uid - drivers/acpi/dock.c:dev_attr_undock - drivers/acpi/pci_bind.c:acpi_pci_unbind() - drivers/acpi/pci_link.c:acpi_link_lock - drivers/acpi/sbs.c:acpi_sbs_callback() - drivers/acpi/sbshc.c:acpi_smbus_transaction() - drivers/acpi/sleep/main.c:acpi_sleep_prepare() - #if 0 the following unused global functions: - drivers/acpi/numa.c:acpi_unmap_pxm_to_node() - remove the following unused EXPORT_SYMBOL's: - acpi_register_gsi - acpi_unregister_gsi - acpi_strict - acpi_bus_receive_event - register_acpi_bus_type - unregister_acpi_bus_type - acpi_os_printf - acpi_os_sleep - acpi_os_stall - acpi_os_read_pci_configuration - acpi_os_create_semaphore - acpi_os_delete_semaphore - acpi_os_wait_semaphore - acpi_os_signal_semaphore - acpi_os_signal - acpi_pci_irq_enable - acpi_get_pxm Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r--drivers/acpi/dock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index 1dabdf4c07b3..7e47a981cc27 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -680,7 +680,7 @@ static ssize_t show_docked(struct device *dev,
680 return snprintf(buf, PAGE_SIZE, "%d\n", dock_present(dock_station)); 680 return snprintf(buf, PAGE_SIZE, "%d\n", dock_present(dock_station));
681 681
682} 682}
683DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL); 683static DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL);
684 684
685/* 685/*
686 * show_flags - read method for flags file in sysfs 686 * show_flags - read method for flags file in sysfs
@@ -691,7 +691,7 @@ static ssize_t show_flags(struct device *dev,
691 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags); 691 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags);
692 692
693} 693}
694DEVICE_ATTR(flags, S_IRUGO, show_flags, NULL); 694static DEVICE_ATTR(flags, S_IRUGO, show_flags, NULL);
695 695
696/* 696/*
697 * write_undock - write method for "undock" file in sysfs 697 * write_undock - write method for "undock" file in sysfs
@@ -707,7 +707,7 @@ static ssize_t write_undock(struct device *dev, struct device_attribute *attr,
707 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); 707 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST);
708 return ret ? ret: count; 708 return ret ? ret: count;
709} 709}
710DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock); 710static DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock);
711 711
712/* 712/*
713 * show_dock_uid - read method for "uid" file in sysfs 713 * show_dock_uid - read method for "uid" file in sysfs
@@ -723,7 +723,7 @@ static ssize_t show_dock_uid(struct device *dev,
723 723
724 return snprintf(buf, PAGE_SIZE, "%lx\n", lbuf); 724 return snprintf(buf, PAGE_SIZE, "%lx\n", lbuf);
725} 725}
726DEVICE_ATTR(uid, S_IRUGO, show_dock_uid, NULL); 726static DEVICE_ATTR(uid, S_IRUGO, show_dock_uid, NULL);
727 727
728/** 728/**
729 * dock_add - add a new dock station 729 * dock_add - add a new dock station