Commit 54e64237 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Greg Kroah-Hartman

[PATCH] PCI Hotplug: Whitespace fixes for acpiphp

This are some whitespace fixes for acpiphp, in most cases killing spaces
before the opening brace of function declarations.
parent 4ced7ead
...@@ -87,7 +87,7 @@ static int is_ejectable (acpi_handle handle) ...@@ -87,7 +87,7 @@ static int is_ejectable (acpi_handle handle)
/* callback routine to check the existence of ejectable slots */ /* callback routine to check the existence of ejectable slots */
static acpi_status static acpi_status
is_ejectable_slot (acpi_handle handle, u32 lvl, void *context, void **rv) is_ejectable_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
{ {
int *count = (int *)context; int *count = (int *)context;
...@@ -103,7 +103,7 @@ is_ejectable_slot (acpi_handle handle, u32 lvl, void *context, void **rv) ...@@ -103,7 +103,7 @@ is_ejectable_slot (acpi_handle handle, u32 lvl, void *context, void **rv)
/* callback routine to register each ACPI PCI slot object */ /* callback routine to register each ACPI PCI slot object */
static acpi_status static acpi_status
register_slot (acpi_handle handle, u32 lvl, void *context, void **rv) register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
{ {
struct acpiphp_bridge *bridge = (struct acpiphp_bridge *)context; struct acpiphp_bridge *bridge = (struct acpiphp_bridge *)context;
struct acpiphp_slot *slot; struct acpiphp_slot *slot;
...@@ -212,7 +212,7 @@ register_slot (acpi_handle handle, u32 lvl, void *context, void **rv) ...@@ -212,7 +212,7 @@ register_slot (acpi_handle handle, u32 lvl, void *context, void **rv)
/* see if it's worth looking at this bridge */ /* see if it's worth looking at this bridge */
static int detect_ejectable_slots (acpi_handle *bridge_handle) static int detect_ejectable_slots(acpi_handle *bridge_handle)
{ {
acpi_status status; acpi_status status;
int count; int count;
...@@ -231,7 +231,7 @@ static int detect_ejectable_slots (acpi_handle *bridge_handle) ...@@ -231,7 +231,7 @@ static int detect_ejectable_slots (acpi_handle *bridge_handle)
* TBD: _TRA, etc. * TBD: _TRA, etc.
*/ */
static acpi_status static acpi_status
decode_acpi_resource (struct acpi_resource *resource, void *context) decode_acpi_resource(struct acpi_resource *resource, void *context)
{ {
struct acpiphp_bridge *bridge = (struct acpiphp_bridge *) context; struct acpiphp_bridge *bridge = (struct acpiphp_bridge *) context;
struct acpi_resource_address64 address; struct acpi_resource_address64 address;
...@@ -339,7 +339,7 @@ static void decode_hpp(struct acpiphp_bridge *bridge) ...@@ -339,7 +339,7 @@ static void decode_hpp(struct acpiphp_bridge *bridge)
/* initialize miscellaneous stuff for both root and PCI-to-PCI bridge */ /* initialize miscellaneous stuff for both root and PCI-to-PCI bridge */
static void init_bridge_misc (struct acpiphp_bridge *bridge) static void init_bridge_misc(struct acpiphp_bridge *bridge)
{ {
acpi_status status; acpi_status status;
...@@ -371,7 +371,7 @@ static void init_bridge_misc (struct acpiphp_bridge *bridge) ...@@ -371,7 +371,7 @@ static void init_bridge_misc (struct acpiphp_bridge *bridge)
/* allocate and initialize host bridge data structure */ /* allocate and initialize host bridge data structure */
static void add_host_bridge (acpi_handle *handle, int seg, int bus) static void add_host_bridge(acpi_handle *handle, int seg, int bus)
{ {
acpi_status status; acpi_status status;
struct acpiphp_bridge *bridge; struct acpiphp_bridge *bridge;
...@@ -423,7 +423,7 @@ static void add_host_bridge (acpi_handle *handle, int seg, int bus) ...@@ -423,7 +423,7 @@ static void add_host_bridge (acpi_handle *handle, int seg, int bus)
/* allocate and initialize PCI-to-PCI bridge data structure */ /* allocate and initialize PCI-to-PCI bridge data structure */
static void add_p2p_bridge (acpi_handle *handle, int seg, int bus, int dev, int fn) static void add_p2p_bridge(acpi_handle *handle, int seg, int bus, int dev, int fn)
{ {
struct acpiphp_bridge *bridge; struct acpiphp_bridge *bridge;
u8 tmp8; u8 tmp8;
...@@ -573,7 +573,7 @@ static void add_p2p_bridge (acpi_handle *handle, int seg, int bus, int dev, int ...@@ -573,7 +573,7 @@ static void add_p2p_bridge (acpi_handle *handle, int seg, int bus, int dev, int
/* callback routine to find P2P bridges */ /* callback routine to find P2P bridges */
static acpi_status static acpi_status
find_p2p_bridge (acpi_handle handle, u32 lvl, void *context, void **rv) find_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv)
{ {
acpi_status status; acpi_status status;
acpi_handle dummy_handle; acpi_handle dummy_handle;
...@@ -673,13 +673,13 @@ static int add_bridge(acpi_handle handle) ...@@ -673,13 +673,13 @@ static int add_bridge(acpi_handle handle)
} }
static void remove_bridge (acpi_handle handle) static void remove_bridge(acpi_handle handle)
{ {
/* No-op for now .. */ /* No-op for now .. */
} }
static int power_on_slot (struct acpiphp_slot *slot) static int power_on_slot(struct acpiphp_slot *slot)
{ {
acpi_status status; acpi_status status;
struct acpiphp_func *func; struct acpiphp_func *func;
...@@ -714,7 +714,7 @@ static int power_on_slot (struct acpiphp_slot *slot) ...@@ -714,7 +714,7 @@ static int power_on_slot (struct acpiphp_slot *slot)
} }
static int power_off_slot (struct acpiphp_slot *slot) static int power_off_slot(struct acpiphp_slot *slot)
{ {
acpi_status status; acpi_status status;
struct acpiphp_func *func; struct acpiphp_func *func;
...@@ -778,7 +778,7 @@ static int power_off_slot (struct acpiphp_slot *slot) ...@@ -778,7 +778,7 @@ static int power_off_slot (struct acpiphp_slot *slot)
* not per each slot object in ACPI namespace. * not per each slot object in ACPI namespace.
* *
*/ */
static int enable_device (struct acpiphp_slot *slot) static int enable_device(struct acpiphp_slot *slot)
{ {
u8 bus; u8 bus;
struct pci_dev *dev; struct pci_dev *dev;
...@@ -852,7 +852,7 @@ static int enable_device (struct acpiphp_slot *slot) ...@@ -852,7 +852,7 @@ static int enable_device (struct acpiphp_slot *slot)
/** /**
* disable_device - disable a slot * disable_device - disable a slot
*/ */
static int disable_device (struct acpiphp_slot *slot) static int disable_device(struct acpiphp_slot *slot)
{ {
int retval = 0; int retval = 0;
struct acpiphp_func *func; struct acpiphp_func *func;
...@@ -894,7 +894,7 @@ static int disable_device (struct acpiphp_slot *slot) ...@@ -894,7 +894,7 @@ static int disable_device (struct acpiphp_slot *slot)
* *
* otherwise return 0 * otherwise return 0
*/ */
static unsigned int get_slot_status (struct acpiphp_slot *slot) static unsigned int get_slot_status(struct acpiphp_slot *slot)
{ {
acpi_status status; acpi_status status;
unsigned long sta = 0; unsigned long sta = 0;
...@@ -939,7 +939,7 @@ static unsigned int get_slot_status (struct acpiphp_slot *slot) ...@@ -939,7 +939,7 @@ static unsigned int get_slot_status (struct acpiphp_slot *slot)
* handles ACPI event notification on {host,p2p} bridges * handles ACPI event notification on {host,p2p} bridges
* *
*/ */
static void handle_hotplug_event_bridge (acpi_handle handle, u32 type, void *context) static void handle_hotplug_event_bridge(acpi_handle handle, u32 type, void *context)
{ {
struct acpiphp_bridge *bridge; struct acpiphp_bridge *bridge;
char objname[64]; char objname[64];
...@@ -1005,7 +1005,7 @@ static void handle_hotplug_event_bridge (acpi_handle handle, u32 type, void *con ...@@ -1005,7 +1005,7 @@ static void handle_hotplug_event_bridge (acpi_handle handle, u32 type, void *con
* handles ACPI event notification on slots * handles ACPI event notification on slots
* *
*/ */
static void handle_hotplug_event_func (acpi_handle handle, u32 type, void *context) static void handle_hotplug_event_func(acpi_handle handle, u32 type, void *context)
{ {
struct acpiphp_func *func; struct acpiphp_func *func;
char objname[64]; char objname[64];
...@@ -1171,7 +1171,7 @@ int acpiphp_for_each_slot(acpiphp_callback fn, void *data) ...@@ -1171,7 +1171,7 @@ int acpiphp_for_each_slot(acpiphp_callback fn, void *data)
/* search matching slot from id */ /* search matching slot from id */
struct acpiphp_slot *get_slot_from_id (int id) struct acpiphp_slot *get_slot_from_id(int id)
{ {
struct list_head *node; struct list_head *node;
struct acpiphp_bridge *bridge; struct acpiphp_bridge *bridge;
...@@ -1193,7 +1193,7 @@ struct acpiphp_slot *get_slot_from_id (int id) ...@@ -1193,7 +1193,7 @@ struct acpiphp_slot *get_slot_from_id (int id)
/** /**
* acpiphp_enable_slot - power on slot * acpiphp_enable_slot - power on slot
*/ */
int acpiphp_enable_slot (struct acpiphp_slot *slot) int acpiphp_enable_slot(struct acpiphp_slot *slot)
{ {
int retval; int retval;
...@@ -1217,7 +1217,7 @@ int acpiphp_enable_slot (struct acpiphp_slot *slot) ...@@ -1217,7 +1217,7 @@ int acpiphp_enable_slot (struct acpiphp_slot *slot)
/** /**
* acpiphp_disable_slot - power off slot * acpiphp_disable_slot - power off slot
*/ */
int acpiphp_disable_slot (struct acpiphp_slot *slot) int acpiphp_disable_slot(struct acpiphp_slot *slot)
{ {
int retval = 0; int retval = 0;
...@@ -1249,7 +1249,7 @@ int acpiphp_disable_slot (struct acpiphp_slot *slot) ...@@ -1249,7 +1249,7 @@ int acpiphp_disable_slot (struct acpiphp_slot *slot)
/** /**
* acpiphp_check_bridge - re-enumerate devices * acpiphp_check_bridge - re-enumerate devices
*/ */
int acpiphp_check_bridge (struct acpiphp_bridge *bridge) int acpiphp_check_bridge(struct acpiphp_bridge *bridge)
{ {
struct acpiphp_slot *slot; struct acpiphp_slot *slot;
unsigned int sta; unsigned int sta;
...@@ -1296,7 +1296,7 @@ int acpiphp_check_bridge (struct acpiphp_bridge *bridge) ...@@ -1296,7 +1296,7 @@ int acpiphp_check_bridge (struct acpiphp_bridge *bridge)
* slot enabled: 1 * slot enabled: 1
* slot disabled: 0 * slot disabled: 0
*/ */
u8 acpiphp_get_power_status (struct acpiphp_slot *slot) u8 acpiphp_get_power_status(struct acpiphp_slot *slot)
{ {
unsigned int sta; unsigned int sta;
...@@ -1314,7 +1314,7 @@ u8 acpiphp_get_power_status (struct acpiphp_slot *slot) ...@@ -1314,7 +1314,7 @@ u8 acpiphp_get_power_status (struct acpiphp_slot *slot)
* no direct attention led status information via ACPI * no direct attention led status information via ACPI
* *
*/ */
u8 acpiphp_get_attention_status (struct acpiphp_slot *slot) u8 acpiphp_get_attention_status(struct acpiphp_slot *slot)
{ {
return 0; return 0;
} }
...@@ -1324,7 +1324,7 @@ u8 acpiphp_get_attention_status (struct acpiphp_slot *slot) ...@@ -1324,7 +1324,7 @@ u8 acpiphp_get_attention_status (struct acpiphp_slot *slot)
* latch closed: 1 * latch closed: 1
* latch open: 0 * latch open: 0
*/ */
u8 acpiphp_get_latch_status (struct acpiphp_slot *slot) u8 acpiphp_get_latch_status(struct acpiphp_slot *slot)
{ {
unsigned int sta; unsigned int sta;
...@@ -1338,7 +1338,7 @@ u8 acpiphp_get_latch_status (struct acpiphp_slot *slot) ...@@ -1338,7 +1338,7 @@ u8 acpiphp_get_latch_status (struct acpiphp_slot *slot)
* adapter presence : 1 * adapter presence : 1
* absence : 0 * absence : 0
*/ */
u8 acpiphp_get_adapter_status (struct acpiphp_slot *slot) u8 acpiphp_get_adapter_status(struct acpiphp_slot *slot)
{ {
unsigned int sta; unsigned int sta;
...@@ -1351,7 +1351,7 @@ u8 acpiphp_get_adapter_status (struct acpiphp_slot *slot) ...@@ -1351,7 +1351,7 @@ u8 acpiphp_get_adapter_status (struct acpiphp_slot *slot)
/* /*
* pci address (seg/bus/dev) * pci address (seg/bus/dev)
*/ */
u32 acpiphp_get_address (struct acpiphp_slot *slot) u32 acpiphp_get_address(struct acpiphp_slot *slot)
{ {
u32 address; u32 address;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment