[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>
This commit is contained in:
@ -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[] = {
|
||||
|
Reference in New Issue
Block a user