* [PATCH 00/11] treewide: rename dev_info variables to something else
[not found] <20100304232928.2e45bdd1.akpm@linux-foundation.org>
@ 2010-04-05 19:05 ` Joe Perches
2010-04-05 19:05 ` [PATCH 01/11] arch/ia64/hp/common/sba_iommu.c: Rename dev_info to adi Joe Perches
1 sibling, 0 replies; 2+ messages in thread
From: Joe Perches @ 2010-04-05 19:05 UTC (permalink / raw)
To: Andrew Morton
Cc: Tony Luck, Fenghua Yu, Mark Gross, Doug Thompson, Mike Isely,
Mauro Carvalho Chehab, Martin Schwidefsky, Heiko Carstens,
linux390, Greg Kroah-Hartman, David Vrabel, linux-ia64,
linux-kernel, bluesmoke-devel, linux-media, linux-s390, devel,
linux-usb, netdev
There is a macro called dev_info that prints struct device specific
information. Having variables with the same name can be confusing and
prevents conversion of the macro to a function.
Rename the existing dev_info variables to something else in preparation
to converting the dev_info macro to a function.
Joe Perches (11):
arch/ia64/hp/common/sba_iommu.c: Rename dev_info to adi
drivers/usb/host/hwa-hc.c: Rename dev_info to hdi
drivers/usb/wusbcore/wusbhc.h: Remove unused dev_info from struct wusb_port
drivers/s390/block/dcssblk.c: Rename dev_info to ddi
drivers/edac/amd: Rename dev_info to adi
drivers/edac/cpc925_edac.c: Rename dev_info to cdi
drivers/edac/e7*_edac.c: Rename dev_info to edi
drivers/staging/iio: Rename dev_info to idi
pvrusb2-v4l2: Rename dev_info to pdi
drivers/char/mem.c: Rename dev_info to bdi
drivers/uwb: Rename dev_info to wdi
arch/ia64/hp/common/sba_iommu.c | 8 +-
drivers/char/mem.c | 6 +-
drivers/edac/amd8111_edac.c | 88 ++++----
drivers/edac/amd8131_edac.c | 86 ++++----
drivers/edac/cpc925_edac.c | 122 +++++-----
drivers/edac/e752x_edac.c | 18 +-
drivers/edac/e7xxx_edac.c | 8 +-
drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 22 +-
drivers/s390/block/dcssblk.c | 328 ++++++++++++++--------------
drivers/staging/iio/accel/lis3l02dq_core.c | 4 +-
drivers/staging/iio/accel/lis3l02dq_ring.c | 20 +-
drivers/staging/iio/accel/sca3000_core.c | 24 +-
drivers/staging/iio/adc/max1363_core.c | 36 ++--
drivers/staging/iio/adc/max1363_ring.c | 6 +-
drivers/staging/iio/chrdev.h | 2 +-
drivers/staging/iio/iio.h | 54 +++---
drivers/staging/iio/industrialio-core.c | 232 ++++++++++----------
drivers/staging/iio/industrialio-ring.c | 38 ++--
drivers/staging/iio/industrialio-trigger.c | 34 ++--
drivers/staging/iio/ring_generic.h | 4 +-
drivers/staging/iio/trigger_consumer.h | 16 +-
drivers/usb/host/hwa-hc.c | 18 +-
drivers/usb/wusbcore/wusbhc.h | 10 -
drivers/uwb/i1480/i1480u-wlp/lc.c | 16 +-
drivers/uwb/wlp/messages.c | 40 ++--
drivers/uwb/wlp/sysfs.c | 46 ++--
drivers/uwb/wlp/wlp-lc.c | 12 +-
27 files changed, 644 insertions(+), 654 deletions(-)
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH 01/11] arch/ia64/hp/common/sba_iommu.c: Rename dev_info to adi
[not found] <20100304232928.2e45bdd1.akpm@linux-foundation.org>
2010-04-05 19:05 ` [PATCH 00/11] treewide: rename dev_info variables to something else Joe Perches
@ 2010-04-05 19:05 ` Joe Perches
1 sibling, 0 replies; 2+ messages in thread
From: Joe Perches @ 2010-04-05 19:05 UTC (permalink / raw)
To: Andrew Morton; +Cc: Tony Luck, Fenghua Yu, linux-ia64, linux-kernel
There is a macro called dev_info that prints struct device specific
information. Having variables with the same name can be confusing and
prevents conversion of the macro to a function.
Rename the existing dev_info variables to something else in preparation
to converting the dev_info macro to a function.
Signed-off-by: Joe Perches <joe@perches.com>
---
arch/ia64/hp/common/sba_iommu.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c
index e14c492..4ce8d13 100644
--- a/arch/ia64/hp/common/sba_iommu.c
+++ b/arch/ia64/hp/common/sba_iommu.c
@@ -2046,13 +2046,13 @@ acpi_sba_ioc_add(struct acpi_device *device)
struct ioc *ioc;
acpi_status status;
u64 hpa, length;
- struct acpi_device_info *dev_info;
+ struct acpi_device_info *adi;
status = hp_acpi_csr_space(device->handle, &hpa, &length);
if (ACPI_FAILURE(status))
return 1;
- status = acpi_get_object_info(device->handle, &dev_info);
+ status = acpi_get_object_info(device->handle, &adi);
if (ACPI_FAILURE(status))
return 1;
@@ -2060,13 +2060,13 @@ acpi_sba_ioc_add(struct acpi_device *device)
* For HWP0001, only SBA appears in ACPI namespace. It encloses the PCI
* root bridges, and its CSR space includes the IOC function.
*/
- if (strncmp("HWP0001", dev_info->hardware_id.string, 7) = 0) {
+ if (strncmp("HWP0001", adi->hardware_id.string, 7) = 0) {
hpa += ZX1_IOC_OFFSET;
/* zx1 based systems default to kernel page size iommu pages */
if (!iovp_shift)
iovp_shift = min(PAGE_SHIFT, 16);
}
- kfree(dev_info);
+ kfree(adi);
/*
* default anything not caught above or specified on cmdline to 4k
--
1.7.0.3.311.g6a6955
^ permalink raw reply related [flat|nested] 2+ messages in thread