linux/arch
Magnus Damm d7aacaddca Driver Core: Add platform device arch data V3
Allow architecture specific data in struct platform_device V3.

With this patch struct pdev_archdata is added to struct
platform_device, similar to struct dev_archdata in found in
struct device. Useful for architecture code that needs to
keep extra data associated with each platform device.

Struct pdev_archdata is different from dev.platform_data, the
convention is that dev.platform_data points to driver-specific
data. It may or may not be required by the driver. The format
of this depends on driver but is the same across architectures.

The structure pdev_archdata is a place for architecture specific
data. This data is handled by architecture specific code (for
example runtime PM), and since it is architecture specific it
should _never_ be touched by device driver code. Exactly like
struct dev_archdata but for platform devices.

[rjw: This change is for power management mostly and that's why it
 goes through the suspend tree.]

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2009-07-22 00:28:38 +02:00
..
alpha headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
arm Driver Core: Add platform device arch data V3 2009-07-22 00:28:38 +02:00
avr32 sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
blackfin blackfin: fix wrong CTS inversion 2009-07-20 16:38:44 -07:00
cris headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
frv sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
h8300 sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
ia64 Driver Core: Add platform device arch data V3 2009-07-22 00:28:38 +02:00
m32r headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
m68k sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
m68knommu Remove multiple KERN_ prefixes from printk formats 2009-07-08 10:30:03 -07:00
microblaze Driver Core: Add platform device arch data V3 2009-07-22 00:28:38 +02:00
mips headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
mn10300 vmlinux.lds.h: restructure BSS linker script macros 2009-07-18 00:02:45 +02:00
parisc sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
powerpc Driver Core: Add platform device arch data V3 2009-07-22 00:28:38 +02:00
s390 headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
sh headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
sparc Driver Core: Add platform device arch data V3 2009-07-22 00:28:38 +02:00
um sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
x86 Driver Core: Add platform device arch data V3 2009-07-22 00:28:38 +02:00
xtensa sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
.gitignore
Kconfig gcov: add gcov profiling infrastructure 2009-06-18 13:03:57 -07:00