* [PATCH] PNPACPI trivial cleanup
@ 2005-01-12 0:16 Bjorn Helgaas
2005-01-13 17:57 ` Adam Belay
0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2005-01-12 0:16 UTC (permalink / raw)
To: shaohua.li-ral2JQCrhuEAvxtiuMwx3w, ambx1-IBH0VoN/3vPQT0dZR+AlfA
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Trivial cleanup (mostly white-space).
Signed-off-by: Bjorn Helgaas <bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
--- pnp1/drivers/pnp/pnpacpi/core.c 2005-01-11 15:44:30.000000000 -0700
+++ pnp1/drivers/pnp/pnpacpi/core.c.1 2005-01-11 15:36:30.000000000 -0700
@@ -3,7 +3,7 @@
*
* Copyright (c) 2004 Matthieu Castet <castet.matthieu-GANU6spQydw@public.gmane.org>
* Copyright (c) 2004 Li Shaohua <shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2, or (at your option) any
@@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+
#include <linux/acpi.h>
#include <linux/pnp.h>
#include <acpi/acpi_bus.h>
@@ -87,7 +87,7 @@
static int pnpacpi_get_resources(struct pnp_dev * dev, struct pnp_resource_table * res)
{
acpi_status status;
- status = pnpacpi_parse_allocated_resource((acpi_handle)dev->data,
+ status = pnpacpi_parse_allocated_resource((acpi_handle)dev->data,
&dev->res);
return ACPI_FAILURE(status) ? -ENODEV : 0;
}
@@ -119,7 +119,7 @@
acpi_status status;
/* acpi_unregister_gsi(pnp_irq(dev, 0)); */
- status = acpi_evaluate_object((acpi_handle)dev->data,
+ status = acpi_evaluate_object((acpi_handle)dev->data,
"_DIS", NULL, NULL);
return ACPI_FAILURE(status) ? -ENODEV : 0;
}
@@ -179,8 +179,7 @@
pnpidacpi_to_pnpid(acpi_device_hid(device), dev_id->id);
pnp_add_id(dev_id, dev);
- if(dev->active) {
- /* parse allocated resource */
+ if (dev->active) {
status = pnpacpi_parse_allocated_resource(device->handle, &dev->res);
if (ACPI_FAILURE(status) && (status != AE_NOT_FOUND)) {
pnp_err("PnPACPI: METHOD_NAME__CRS failure for %s", dev_id->id);
@@ -188,8 +187,8 @@
}
}
- if(dev->capabilities & PNP_CONFIGURABLE) {
- status = pnpacpi_parse_resource_option_data(device->handle,
+ if (dev->capabilities & PNP_CONFIGURABLE) {
+ status = pnpacpi_parse_resource_option_data(device->handle,
dev);
if (ACPI_FAILURE(status) && (status != AE_NOT_FOUND)) {
pnp_err("PnPACPI: METHOD_NAME__PRS failure for %s", dev_id->id);
@@ -205,7 +204,7 @@
for (i = 0; i < cid_list->count; i++) {
if (!ispnpidacpi(cid_list->id[i].value))
continue;
- dev_id = pnpacpi_kmalloc(sizeof(struct pnp_id),
+ dev_id = pnpacpi_kmalloc(sizeof(struct pnp_id),
GFP_KERNEL);
if (!dev_id)
continue;
@@ -219,7 +218,7 @@
if (!dev->active)
pnp_init_resource_table(&dev->res);
pnp_add_device(dev);
- num ++;
+ num++;
return AE_OK;
err1:
@@ -244,7 +243,7 @@
int __init pnpacpi_init(void)
{
if (acpi_disabled) {
- pnp_info("PnP ACPI: ACPI disable");
+ pnp_info("PnP ACPI: ACPI disabled");
return 0;
}
pnp_info("PnP ACPI init");
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PNPACPI trivial cleanup
2005-01-12 0:16 [PATCH] PNPACPI trivial cleanup Bjorn Helgaas
@ 2005-01-13 17:57 ` Adam Belay
0 siblings, 0 replies; 2+ messages in thread
From: Adam Belay @ 2005-01-13 17:57 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: shaohua.li-ral2JQCrhuEAvxtiuMwx3w, ambx1-IBH0VoN/3vPQT0dZR+AlfA,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Tue, Jan 11, 2005 at 05:16:03PM -0700, Bjorn Helgaas wrote:
> Trivial cleanup (mostly white-space).
>
Applied.
Thanks,
Adam
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-13 17:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-12 0:16 [PATCH] PNPACPI trivial cleanup Bjorn Helgaas
2005-01-13 17:57 ` Adam Belay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox