[ARM] 3033/1: S3C2410 - add generic gpio_cfgpin options
authorBen Dooks <ben-linux@fluff.org>
Fri, 28 Oct 2005 14:26:41 +0000 (15:26 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 28 Oct 2005 14:26:41 +0000 (15:26 +0100)
commit42d3a120fe9a1831b88e7037ce0b048d82433b09
tree0fef604e20da25b1c6254ebda98d00cfce2498e2
parentc09f98271f685af349d3f0199360f1c0e85550e0
[ARM] 3033/1: S3C2410 - add generic gpio_cfgpin options

Patch from Ben Dooks

Add generic values for the parameters to the
s3c2410_gpio_cfgpin() function, so that a caller
does not need to know the exact constant for
the specified pin.

This is very useful for the case where a driver
is passed a gpio pin number and needs to reconfigure
the pin's function.

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
include/asm-arm/arch-s3c2410/regs-gpio.h