From 6f7d371668dd3a1ff5dfa2aecbce81851249ec42 Mon Sep 17 00:00:00 2001 From: Michael Bohan Date: Tue, 14 Aug 2012 14:35:37 -0700 Subject: [PATCH] gpio: qpnp-pin: Update MPP and GPIO subtypes based on doc change The subtypes defined in the documentation have changed again. Update both GPIO and MPP subtype values in the qpnp-pin driver to reflect this. Change-Id: I22e22414a74d724259706c927582d1573dc58875 Signed-off-by: Michael Bohan --- drivers/gpio/qpnp-pin.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/qpnp-pin.c b/drivers/gpio/qpnp-pin.c index 2dfed44b6c9f..6511c95f0668 100644 --- a/drivers/gpio/qpnp-pin.c +++ b/drivers/gpio/qpnp-pin.c @@ -39,17 +39,17 @@ /* gpio peripheral type and subtype values */ #define Q_GPIO_TYPE 0x10 -#define Q_GPIO_SUBTYPE_GPIO_4CH 0x0 -#define Q_GPIO_SUBTYPE_GPIOC_4CH 0x2 -#define Q_GPIO_SUBTYPE_GPIO_8CH 0x4 -#define Q_GPIO_SUBTYPE_GPIOC_8CH 0x6 +#define Q_GPIO_SUBTYPE_GPIO_4CH 0x1 +#define Q_GPIO_SUBTYPE_GPIOC_4CH 0x5 +#define Q_GPIO_SUBTYPE_GPIO_8CH 0x9 +#define Q_GPIO_SUBTYPE_GPIOC_8CH 0xD /* mpp peripheral type and subtype values */ #define Q_MPP_TYPE 0x11 #define Q_MPP_SUBTYPE_4CH_NO_ANA_OUT 0x3 #define Q_MPP_SUBTYPE_4CH_NO_SINK 0x5 -#define Q_MPP_SUBTYPE_4CH_FULL_FUNC 0x2 -#define Q_MPP_SUBTYPE_8CH_FULL_FUNC 0x4 +#define Q_MPP_SUBTYPE_4CH_FULL_FUNC 0x7 +#define Q_MPP_SUBTYPE_8CH_FULL_FUNC 0xF /* control register base address offsets */ #define Q_REG_MODE_CTL 0x40