public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]change 'struct device' -> platform_data to firmware_data
@ 2005-01-12  2:57 Li Shaohua
  2005-01-12  3:54 ` Deepak Saxena
  2005-01-12  5:02 ` Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: Li Shaohua @ 2005-01-12  2:57 UTC (permalink / raw)
  To: lkml; +Cc: Greg, Andrew Morton

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;
 
_



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-12  6:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-12  2:57 [PATCH]change 'struct device' -> platform_data to firmware_data Li Shaohua
2005-01-12  3:54 ` Deepak Saxena
2005-01-12  5:06   ` Greg KH
2005-01-12  5:15     ` Li Shaohua
2005-01-12  6:07       ` Kumar Gala
2005-01-12  6:37         ` Li Shaohua
2005-01-12  5:02 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox