Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: ab8540: Staticize some symbols

Silences the following warnings:
drivers/pinctrl/pinctrl-ab8540.c:302:28: warning:
symbol 'ab8540_alternate_functions' was not declared. Should it be static?
drivers/pinctrl/pinctrl-ab8540.c:379:32: warning:
symbol 'ab8540_gpio_irq_cluster' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Sachin Kamat and committed by
Linus Walleij
efdd69f1 49e6cbfb

+3 -2
+3 -2
drivers/pinctrl/pinctrl-ab8540.c
··· 299 299 * 300 300 */ 301 301 302 - struct alternate_functions ab8540_alternate_functions[AB8540_GPIO_MAX_NUMBER + 1] = { 302 + static struct 303 + alternate_functions ab8540_alternate_functions[AB8540_GPIO_MAX_NUMBER + 1] = { 303 304 /* GPIOSEL1 - bit 4-7 reserved */ 304 305 ALTERNATE_FUNCTIONS(0, UNUSED, UNUSED, UNUSED, 0, 0, 0), /* no GPIO0 */ 305 306 ALTERNATE_FUNCTIONS(1, 0, UNUSED, UNUSED, 0, 0, 0), /* GPIO1, altA controlled by bit 0 */ ··· 377 376 * GPIO43 to GPIO44 378 377 * GPIO51 to GPIO54 379 378 */ 380 - struct abx500_gpio_irq_cluster ab8540_gpio_irq_cluster[] = { 379 + static struct abx500_gpio_irq_cluster ab8540_gpio_irq_cluster[] = { 381 380 GPIO_IRQ_CLUSTER(43, 43, AB8540_INT_GPIO43F), 382 381 GPIO_IRQ_CLUSTER(44, 44, AB8540_INT_GPIO44F), 383 382 GPIO_IRQ_CLUSTER(51, 54, AB9540_INT_GPIO51R),