Skip to content

Commit

Permalink
serial: sh-sci: Make sci_irq_desc[] const
Browse files Browse the repository at this point in the history
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Geert Uytterhoeven authored and Greg Kroah-Hartman committed Oct 4, 2015
1 parent f84b6bd commit d56a91e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit d56a91e

Please sign in to comment.