gpio: stmpe: Staticize non-exported symbols
PATCH 1/1 gpio: stmpe: Staticize non-exported symbols
Both stmpe_gpio_irq_map() and stmpe_gpio_irq_unmap() are not referenced outside of this file, make them static.
Signed-off-by Axel Lin <[email protected]>
--- drivers/gpio/gpio-stmpe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpio/gpio-stmpe.c +3 -3
@@ -271,8 +271,8 @@ static irqreturn_t stmpe_gpio_irq(int irq, void *dev)return IRQ_HANDLED ; } -int stmpe_gpio_irq_map (struct irq_domain *d,unsigned int virq, -irq_hw_number_t hwirq) +static int stmpe_gpio_irq_map (struct irq_domain *d,unsigned int virq, +irq_hw_number_t hwirq) {struct stmpe_gpio *stmpe_gpio = d->host_data;
@@ -292,7 +292,7 @@ int stmpe_gpio_irq_map(struct irq_domain *d, unsigned int virq,return 0 ; } -void stmpe_gpio_irq_unmap (struct irq_domain *d,unsigned int virq) +static void stmpe_gpio_irq_unmap (struct irq_domain *d,unsigned int virq) {#ifdef CONFIG_ARM set_irq_flags (virq,0 );
Signature · 1 line
1.8.1.2
Quoted 7 lines · Axel Lin
Both
stmpe_gpio_irq_map()andstmpe_gpio_irq_unmap()are not referenced outside of this file, make them static.Signed-off-by Axel Lin <[email protected]>--- drivers/gpio/gpio-stmpe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Acked-by Lee Jones <[email protected]>
Signature · 4 lines
Lee Jones Linaro ST-Ericsson Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 4 lines · Axel Lin
Both
stmpe_gpio_irq_map()andstmpe_gpio_irq_unmap()are not referenced outside of this file, make them static.Signed-off-by Axel Lin <[email protected]>
Patch applied with Lee's ACK.
Yours,
Linus Walleij