Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3abebc7 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Walleij
Browse files

gpio: msm: Staticize local variable 'msm_gpio'



The local variable 'msm_gpio' is used only in this file.
Fix the following sparse warning:

drivers/gpio/gpio-msm-v2.c:109:21: warning: symbol 'msm_gpio' was not declared. Should it be static?

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent eddf8176
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ struct msm_gpio_dev {
	void __iomem *msm_tlmm_base;
};

struct msm_gpio_dev msm_gpio;
static struct msm_gpio_dev msm_gpio;

#define GPIO_INTR_CFG_SU(gpio)    (msm_gpio.msm_tlmm_base + 0x0400 + \
								(0x04 * (gpio)))