* [PATCH 5/5] ARM: S5PC110: Assign the group number for GPIOs
@ 2010-08-05 7:25 Kyungmin Park
0 siblings, 0 replies; only message in thread
From: Kyungmin Park @ 2010-08-05 7:25 UTC (permalink / raw)
To: linux-arm-kernel
From: Kyungmin Park <kyungmin.park@samsung.com>
With this, it can calculate the proper GPIOs offset when support the GPIO interrupt.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
arch/arm/mach-s5pv210/gpiolib.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-s5pv210/gpiolib.c b/arch/arm/mach-s5pv210/gpiolib.c
index 94d4fe2..ffb0d0d 100644
--- a/arch/arm/mach-s5pv210/gpiolib.c
+++ b/arch/arm/mach-s5pv210/gpiolib.c
@@ -260,11 +260,14 @@ static __init int s5pv210_gpiolib_init(void)
{
struct s3c_gpio_chip *chip = s5pv210_gpio_4bit;
int nr_chips = ARRAY_SIZE(s5pv210_gpio_4bit);
- int i, extint = 0;
+ int i, extint = 0, group = 0;
for (i = 0; i < nr_chips; i++, chip++) {
- if (chip->config == NULL)
+ if (chip->config == NULL) {
chip->config = &gpio_cfg;
+ /* Assign the GPIO interrupt group number */
+ chip->group = group++;
+ }
if (chip->config == &gpio_cfg_extint) {
chip->base = S5PV210_BANK_BASE(extint) + EXTINT_OFFSET;
/* Assign the external GPIO interrupt group number */
--
1.5.3.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-05 7:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-05 7:25 [PATCH 5/5] ARM: S5PC110: Assign the group number for GPIOs Kyungmin Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).