serial: sh-sci: Make sci_irq_desc[] const
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 21 Aug 2015 18:02:32 +0000 (20:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:33:48 +0000 (17:33 +0100)
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c

index 9502f52d4b55808aa34136532bdf74eabc348f37..1758039066515fb7481de5084a83accc985830c6 100644 (file)
@@ -1110,7 +1110,7 @@ static int sci_notifier(struct notifier_block *self,
        return NOTIFY_OK;
 }
 
-static struct sci_irq_desc {
+static const struct sci_irq_desc {
        const char      *desc;
        irq_handler_t   handler;
 } sci_irq_desc[] = {
@@ -1152,7 +1152,7 @@ static int sci_request_irq(struct sci_port *port)
        int i, j, ret = 0;
 
        for (i = j = 0; i < SCIx_NR_IRQS; i++, j++) {
-               struct sci_irq_desc *desc;
+               const struct sci_irq_desc *desc;
                int irq;
 
                if (SCIx_IRQ_IS_MUXED(port)) {