From: Pavel Machek <pavel@ucw.cz>
To: Kristen Accardi <kristen.c.accardi@intel.com>
Cc: linux-kernel@vger.kernel.org, greg@kroah.com,
pcihpd-discuss@lists.sourceforge.net, len.brown@intel.com,
linux-acpi@vger.kernel.org
Subject: Re: [Pcihpd-discuss] Re: [patch 0/4] Hot Dock/Undock support
Date: Wed, 18 Jan 2006 22:11:40 +0100 [thread overview]
Message-ID: <20060118211140.GA2058@elf.ucw.cz> (raw)
In-Reply-To: <1137609747.31839.6.camel@whizzy>
Few cleanups for acpiphp_glue, and spelling fix in warning. It still
does not use consistent function definitions, but lets pretentd it is
to fit into 80 columns.
Signed-off-by: Pavel Machek <pavel@suse.cz>
--- clean-mm/drivers/pci/hotplug/acpiphp_glue.c 2006-01-18 12:52:02.000000000 +0100
+++ linux-mm/drivers/pci/hotplug/acpiphp_glue.c 2006-01-18 22:09:08.000000000 +0100
@@ -91,14 +94,12 @@
acpi_handle tmp;
status = acpi_get_handle(handle, "_ADR", &tmp);
- if (ACPI_FAILURE(status)) {
+ if (ACPI_FAILURE(status))
return 0;
- }
status = acpi_get_handle(handle, "_EJ0", &tmp);
- if (ACPI_FAILURE(status)) {
+ if (ACPI_FAILURE(status))
return 0;
- }
return 1;
}
@@ -470,7 +473,7 @@
dbg("%s: _STA evaluation failure\n", __FUNCTION__);
return 0;
}
- if ((tmp & ACPI_STA_FUNCTIONING) == 0)
+ if (!(tmp & ACPI_STA_FUNCTIONING))
/* don't register this object */
return 0;
}
@@ -503,12 +508,12 @@
return 0;
}
/* search P2P bridges under this host bridge */
status = acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, (u32)1,
find_p2p_bridge, pci_bus, NULL);
if (ACPI_FAILURE(status))
- warn("find_p2p_bridge faied (error code = 0x%x)\n",status);
+ warn("find_p2p_bridge failed (error code = 0x%x)\n", status);
return 0;
}
@@ -587,7 +593,7 @@
}
}
-static struct pci_dev * get_apic_pci_info(acpi_handle handle)
+static struct pci_dev *get_apic_pci_info(acpi_handle handle)
{
struct acpi_pci_id id;
struct pci_bus *bus;
@@ -891,8 +897,8 @@
* this slot and return the one that represents the given
* pci_dev structure.
*/
-static struct acpiphp_func * get_func(struct acpiphp_slot *slot,
- struct pci_dev *dev)
+static struct
+acpiphp_func *get_func(struct acpiphp_slot *slot, struct pci_dev *dev)
{
struct list_head *l;
struct acpiphp_func *func;
@@ -912,8 +918,7 @@
/** acpiphp_max_busnr - find the max reserved busnr for this bus
* @bus: the bus to scan
*/
-static unsigned char
-acpiphp_max_busnr(struct pci_bus *bus)
+static unsigned char acpiphp_max_busnr(struct pci_bus *bus)
{
struct list_head *tmp;
unsigned char max, n;
@@ -1476,9 +1481,9 @@
if (is_root_bridge(handle)) {
acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY,
handle_hotplug_event_bridge, NULL);
- (*count)++;
+ (*count)++;
}
- return AE_OK ;
+ return AE_OK;
}
static struct acpi_pci_driver acpi_pci_hp_driver = {
--
Thanks, Sharp!
prev parent reply other threads:[~2006-01-18 21:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-18 0:56 [patch 0/4] Hot Dock/Undock support Kristen Accardi
2006-01-18 12:16 ` Pavel Machek
2006-01-18 13:04 ` Pavel Machek
2006-01-18 18:42 ` [Pcihpd-discuss] " Kristen Accardi
2006-01-18 19:45 ` Pavel Machek
2006-01-18 21:06 ` Kristen Accardi
2006-01-18 21:47 ` Matthew Garrett
2006-01-18 22:08 ` Pavel Machek
2006-01-18 22:23 ` Pavel Machek
2006-01-19 0:06 ` Kristen Accardi
2006-01-19 15:23 ` Dmitry Torokhov
2006-01-18 14:51 ` Pavel Machek
2006-01-20 1:27 ` Kristen Accardi
2006-01-18 20:42 ` Pavel Machek
2006-01-18 21:43 ` Kristen Accardi
2006-01-18 21:11 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060118211140.GA2058@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=greg@kroah.com \
--cc=kristen.c.accardi@intel.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pcihpd-discuss@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox