summaryrefslogtreecommitdiff
path: root/arch/arm/plat-s3c24xx/devs.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-12-18 17:20:04 +0300
committerBen Dooks <ben-linux@fluff.org>2008-12-18 17:20:04 +0300
commit28ab44c5be60a9b91021a7cc7b4e202775c04764 (patch)
treeaf1285f75e808c9be214a9df1af141726109b108 /arch/arm/plat-s3c24xx/devs.c
parente7aa6f46f6e4644d466e04f54b5750a91d188abf (diff)
downloadlinux-28ab44c5be60a9b91021a7cc7b4e202775c04764.tar.xz
[ARM] S3C24XX: ADC driver core
A common core driver for the S3C24XX ADC block so that the touchscreen, hwmon and any other drivers can share the resource. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c24xx/devs.c')
-rw-r--r--arch/arm/plat-s3c24xx/devs.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c
index adf535aaf43a..6a33dbc494f4 100644
--- a/arch/arm/plat-s3c24xx/devs.c
+++ b/arch/arm/plat-s3c24xx/devs.c
@@ -372,12 +372,20 @@ static struct resource s3c_adc_resource[] = {
};
struct platform_device s3c_device_adc = {
- .name = "s3c2410-adc",
+ .name = "s3c24xx-adc",
.id = -1,
.num_resources = ARRAY_SIZE(s3c_adc_resource),
.resource = s3c_adc_resource,
};
+/* HWMON */
+
+struct platform_device s3c_device_hwmon = {
+ .name = "s3c24xx-hwmon",
+ .id = -1,
+ .dev.parent = &s3c_device_adc.dev,
+};
+
/* SDI */
static struct resource s3c_sdi_resource[] = {