diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-05-17 01:13:16 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-18 06:06:32 -0400 |
commit | 2c8fcfbf735e2d3b139e4247eb3e73edf64bb23f (patch) | |
tree | 253eb5464e32a159cac657deb341347d652354c3 /arch/arm | |
parent | a0026418d3d99b68dbd6c91f277d6f764fe41956 (diff) |
ARM: S3C24XX: Start cleanup of GPIO numbering
Start cleaning up the numbering of GPIO banks by removing the old
bank start definitions currently being used by some of the header
files.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/gpio-nrs.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/gpio.c | 8 |
2 files changed, 4 insertions, 9 deletions
diff --git a/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h b/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h index f3182ff847cb..ad94e1ac2463 100644 --- a/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h +++ b/arch/arm/mach-s3c2410/include/mach/gpio-nrs.h | |||
@@ -16,12 +16,7 @@ | |||
16 | 16 | ||
17 | #define S3C2410_GPIONO(bank,offset) ((bank) + (offset)) | 17 | #define S3C2410_GPIONO(bank,offset) ((bank) + (offset)) |
18 | 18 | ||
19 | #define S3C2410_GPIO_BANKA (32*0) | ||
20 | #define S3C2410_GPIO_BANKB (32*1) | ||
21 | #define S3C2410_GPIO_BANKC (32*2) | 19 | #define S3C2410_GPIO_BANKC (32*2) |
22 | #define S3C2410_GPIO_BANKD (32*3) | ||
23 | #define S3C2410_GPIO_BANKE (32*4) | ||
24 | #define S3C2410_GPIO_BANKF (32*5) | ||
25 | #define S3C2410_GPIO_BANKG (32*6) | 20 | #define S3C2410_GPIO_BANKG (32*6) |
26 | #define S3C2410_GPIO_BANKH (32*7) | 21 | #define S3C2410_GPIO_BANKH (32*7) |
27 | 22 | ||
diff --git a/arch/arm/mach-s3c2412/gpio.c b/arch/arm/mach-s3c2412/gpio.c index f7afece7fc38..71c579349dd5 100644 --- a/arch/arm/mach-s3c2412/gpio.c +++ b/arch/arm/mach-s3c2412/gpio.c | |||
@@ -33,14 +33,14 @@ int s3c2412_gpio_set_sleepcfg(unsigned int pin, unsigned int state) | |||
33 | 33 | ||
34 | offs *= 2; | 34 | offs *= 2; |
35 | 35 | ||
36 | if (pin < S3C2410_GPIO_BANKB) | 36 | if (pin < S3C2410_GPB(0)) |
37 | return -EINVAL; | 37 | return -EINVAL; |
38 | 38 | ||
39 | if (pin >= S3C2410_GPIO_BANKF && | 39 | if (pin >= S3C2410_GPF(0) && |
40 | pin <= S3C2410_GPIO_BANKG) | 40 | pin <= S3C2410_GPG(16)) |
41 | return -EINVAL; | 41 | return -EINVAL; |
42 | 42 | ||
43 | if (pin > (S3C2410_GPIO_BANKH + 32)) | 43 | if (pin > S3C2410_GPH(16)) |
44 | return -EINVAL; | 44 | return -EINVAL; |
45 | 45 | ||
46 | local_irq_save(flags); | 46 | local_irq_save(flags); |