summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/include/plat/hwmon.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere2010-05-04 13:12:32 +0200
committerBen Dooks2010-05-12 10:43:03 +0200
commit6cd82ffe0cd3836b32b29bd1436e5fd551957d54 (patch)
treed34f023240f7f456cf1c74a325afd15bce2ba2d4 /arch/arm/plat-samsung/include/plat/hwmon.h
parentMerge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/air... (diff)
downloadkernel-qcow2-linux-6cd82ffe0cd3836b32b29bd1436e5fd551957d54.tar.gz
kernel-qcow2-linux-6cd82ffe0cd3836b32b29bd1436e5fd551957d54.tar.xz
kernel-qcow2-linux-6cd82ffe0cd3836b32b29bd1436e5fd551957d54.zip
ARM: SAMSUNG: Move HWMON from plat-s3c24xx to plat-samsung
Move HWMON platform definition from plat-s3c24xx to plat-samsung and adjust mach-bast to use the new s3c_hwmon_set_platdata(). This allows usage of dev-hwmon by other Samsung SoCs. Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/hwmon.h')
-rw-r--r--arch/arm/plat-samsung/include/plat/hwmon.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/hwmon.h b/arch/arm/plat-samsung/include/plat/hwmon.h
index 1ba88ea0aa31..c167e4429bc7 100644
--- a/arch/arm/plat-samsung/include/plat/hwmon.h
+++ b/arch/arm/plat-samsung/include/plat/hwmon.h
@@ -37,5 +37,15 @@ struct s3c_hwmon_pdata {
struct s3c_hwmon_chcfg *in[8];
};
+/**
+ * s3c_hwmon_set_platdata - Set platform data for S3C HWMON device
+ * @pd: Platform data to register to device.
+ *
+ * Register the given platform data for use with the S3C HWMON device.
+ * The call will copy the platform data, so the board definitions can
+ * make the structure itself __initdata.
+ */
+extern void __init s3c_hwmon_set_platdata(struct s3c_hwmon_pdata *pd);
+
#endif /* __ASM_ARCH_ADC_HWMON_H */