diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-07-08 13:21:31 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2009-07-22 00:28:38 +0200 |
commit | d7aacaddcac3971e33cf52d7e610c06696cb347f (patch) | |
tree | 2f34e6b48f5cc1224bdefd721bba108c43aad34b /arch/ia64/include | |
parent | aea1f7964ae6cba5eb419a958956deb9016b3341 (diff) | |
download | kernel_samsung_smdk4412-d7aacaddcac3971e33cf52d7e610c06696cb347f.zip kernel_samsung_smdk4412-d7aacaddcac3971e33cf52d7e610c06696cb347f.tar.gz kernel_samsung_smdk4412-d7aacaddcac3971e33cf52d7e610c06696cb347f.tar.bz2 |
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>
Diffstat (limited to 'arch/ia64/include')
-rw-r--r-- | arch/ia64/include/asm/device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ia64/include/asm/device.h b/arch/ia64/include/asm/device.h index 41ab85d..d66d446 100644 --- a/arch/ia64/include/asm/device.h +++ b/arch/ia64/include/asm/device.h @@ -15,4 +15,7 @@ struct dev_archdata { #endif }; +struct pdev_archdata { +}; + #endif /* _ASM_IA64_DEVICE_H */ |