[PATCH]change 'struct device' -> platform_data to firmware_data

From: Li Shaohua
Date: Tue Jan 11 2005 - 21:59:57 EST


Hi,
struct device->platform_data is designed for ACPI, BIOS or other
platform specific data, but some drivers misused the field which makes
adding ACPI handle in device core impossible. Greg suggested me changing
the name of the filed and so it breaks all such drivers, and then fix
them. I'll try to fix some, but it would be great if the driver authors
could do it.

Thanks,
Shaohua

---

2.5-root/include/linux/device.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/device.h~platform_data include/linux/device.h
--- 2.5/include/linux/device.h~platform_data 2005-01-12 10:41:35.446722944 +0800
+++ 2.5-root/include/linux/device.h 2005-01-12 10:42:37.762249544 +0800
@@ -265,7 +265,7 @@ struct device {
struct device_driver *driver; /* which driver has allocated this
device */
void *driver_data; /* data private to the driver */
- void *platform_data; /* Platform specific data (e.g. ACPI,
+ void *firmware_data; /* Platform specific data (e.g. ACPI,
BIOS data relevant to device) */
struct dev_pm_info power;

_


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/