aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/include
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-06-09 23:57:15 -0400
committerKukjin Kim <kgene.kim@samsung.com>2010-08-05 05:32:49 -0400
commit3911dab8ad582fd4db5e79eda5320c37c3dfb9bb (patch)
treec2a80e4b4814512d289f4e39fb489a4958067d39 /arch/arm/plat-samsung/include
parent5db2bc8a114b866f351a510dab6945ab20567055 (diff)
ARM: SAMSUNG: Add helper to clone and set platform data
This is intended to replace a number of sites in the Samsung kernel where the same thing is being repeated in specific platform setting code. See next patches for replacements. Signed-off-by: Ben Dooks <ben-linux@fluff.org> [kgene.kim@samsung.com: This is for building test] Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/include')
-rw-r--r--arch/arm/plat-samsung/include/plat/devs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/devs.h b/arch/arm/plat-samsung/include/plat/devs.h
index e6144e4b9118..676099999de4 100644
--- a/arch/arm/plat-samsung/include/plat/devs.h
+++ b/arch/arm/plat-samsung/include/plat/devs.h
@@ -108,3 +108,15 @@ extern struct platform_device s3c_device_camif;
108extern struct platform_device s3c_device_ac97; 108extern struct platform_device s3c_device_ac97;
109 109
110#endif 110#endif
111
112/**
113 * s3c_set_platdata() - helper for setting platform data
114 * @pd: The default platform data for this device.
115 * @pdsize: The size of the platform data.
116 * @pdev: Pointer to the device to fill in.
117 *
118 * This helper replaces a number of calls that copy and then set the
119 * platform data of the device.
120 */
121extern void *s3c_set_platdata(void *pd, size_t pdsize,
122 struct platform_device *pdev);