lkml.org 
[lkml]   [2016]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] irqchip/ts4800: Make ts4800_ic_ops static const
    From
    Date
    ts4800_ic_ops is only referenced in this driver, so make it static.
    In additional, it's never get modified thus also make it const.

    Signed-off-by: Axel Lin <axel.lin@ingics.com>
    ---
    drivers/irqchip/irq-ts4800.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/irqchip/irq-ts4800.c b/drivers/irqchip/irq-ts4800.c
    index 4192bdc..2325fb3 100644
    --- a/drivers/irqchip/irq-ts4800.c
    +++ b/drivers/irqchip/irq-ts4800.c
    @@ -59,7 +59,7 @@ static int ts4800_irqdomain_map(struct irq_domain *d, unsigned int irq,
    return 0;
    }

    -struct irq_domain_ops ts4800_ic_ops = {
    +static const struct irq_domain_ops ts4800_ic_ops = {
    .map = ts4800_irqdomain_map,
    .xlate = irq_domain_xlate_onecell,
    };
    --
    2.1.4


    \
     
     \ /
      Last update: 2016-02-14 15:21    [W:7.676 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site