]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: SAMSUNG: Allow overriding of adc device name for S3C24XX
authorHeiko Stuebner <heiko@sntech.de>
Wed, 12 Oct 2011 12:34:12 +0000 (21:34 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 12 Oct 2011 12:34:42 +0000 (21:34 +0900)
The adc blocks of S3C2443 and S3C2416 contain quirks not present
in the stock S3C24xx adc. Therefore allow them to alter the
device name via s3c_adc_setname.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-samsung/include/plat/adc-core.h

index a281568d5856083141d2123ca08febba0ea2916d..a927bee553593ca874da782f9fca0627a89dcf4c 100644 (file)
@@ -20,7 +20,7 @@
 /* re-define device name depending on support. */
 static inline void s3c_adc_setname(char *name)
 {
-#ifdef CONFIG_SAMSUNG_DEV_ADC
+#if defined(CONFIG_SAMSUNG_DEV_ADC) || defined(CONFIG_PLAT_S3C24XX)
        s3c_device_adc.name = name;
 #endif
 }