]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 4096/1: S3C24XX: change return code form s3c2410_gpio_getcfg()
authorBen Dooks <ben-linux@fluff.org>
Tue, 16 Jan 2007 11:56:58 +0000 (12:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 24 Jan 2007 11:59:56 +0000 (11:59 +0000)
commit148e97e0319d82afbac5264c1b793cfcadb906fa
tree9b7867e04c29977fbfffffb0a43e98350a458e09
parentb2258750bed49d030ad6ed8f786df4433e20202b
[ARM] 4096/1: S3C24XX: change return code form s3c2410_gpio_getcfg()

The s3c2410_gpio_getcfg() currently returns
a value which is dependant on the GPIO no
passed in. Now we have more generic constants
it is sensible to use those as return codes
so that any function dealing with >1 GPIO
does not need to do it's own number processing.

Since this function is only currently used in
pm.c, it is easy to fixup (and correct pm.c
to use the generic constants)

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-s3c2410/gpio.c
arch/arm/mach-s3c2410/pm.c