From: Li Shaohua <shaohua.li@intel.com>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Greg <greg@kroah.com>, Andrew Morton <akpm@osdl.org>
Subject: [PATCH]change 'struct device' -> platform_data to firmware_data
Date: Wed, 12 Jan 2005 10:57:06 +0800 [thread overview]
Message-ID: <1105498626.26324.14.camel@sli10-desk.sh.intel.com> (raw)
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;
_
next reply other threads:[~2005-01-12 2:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-12 2:57 Li Shaohua [this message]
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
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=1105498626.26324.14.camel@sli10-desk.sh.intel.com \
--to=shaohua.li@intel.com \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®