|
@@ -439,9 +439,10 @@ static int nsp_gpio_set_strength(struct nsp_gpio *chip, unsigned gpio,
|
|
static int nsp_gpio_get_strength(struct nsp_gpio *chip, unsigned gpio,
|
|
static int nsp_gpio_get_strength(struct nsp_gpio *chip, unsigned gpio,
|
|
u16 *strength)
|
|
u16 *strength)
|
|
{
|
|
{
|
|
- unsigned int i, offset, shift;
|
|
|
|
|
|
+ unsigned int offset, shift;
|
|
u32 val;
|
|
u32 val;
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
|
+ int i;
|
|
|
|
|
|
offset = NSP_GPIO_DRV_CTRL;
|
|
offset = NSP_GPIO_DRV_CTRL;
|
|
shift = gpio;
|
|
shift = gpio;
|