diff options
author | Frank Seidel <fseidel@suse.de> | 2008-02-01 03:14:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-02 18:14:48 -0500 |
commit | 18bbe0c26ccb7445d19465b0d3585d23445307f1 (patch) | |
tree | 4db2fbd3892a80f52865e49de59e55294273b203 /drivers/char/nozomi.c | |
parent | 71e1b4abdc39b61e4cb73ef74df68ab397e25378 (diff) |
nozomi: finish constification
Even some more constifications
Signed-off-by: Frank Seidel <fseidel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/nozomi.c')
-rw-r--r-- | drivers/char/nozomi.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/char/nozomi.c b/drivers/char/nozomi.c index 7979eb13d94a..dfaab2322de3 100644 --- a/drivers/char/nozomi.c +++ b/drivers/char/nozomi.c | |||
@@ -395,7 +395,7 @@ struct buffer { | |||
395 | } __attribute__ ((packed)); | 395 | } __attribute__ ((packed)); |
396 | 396 | ||
397 | /* Global variables */ | 397 | /* Global variables */ |
398 | static struct pci_device_id nozomi_pci_tbl[] __devinitdata = { | 398 | static const struct pci_device_id nozomi_pci_tbl[] __devinitconst = { |
399 | {PCI_DEVICE(VENDOR1, DEVICE1)}, | 399 | {PCI_DEVICE(VENDOR1, DEVICE1)}, |
400 | {}, | 400 | {}, |
401 | }; | 401 | }; |
@@ -778,13 +778,13 @@ static void disable_transmit_dl(enum port_type port, struct nozomi *dc) | |||
778 | * Return 1 - send buffer to card and ack. | 778 | * Return 1 - send buffer to card and ack. |
779 | * Return 0 - don't ack, don't send buffer to card. | 779 | * Return 0 - don't ack, don't send buffer to card. |
780 | */ | 780 | */ |
781 | static int send_data(enum port_type index, struct nozomi *dc) | 781 | static int send_data(enum port_type index, const struct nozomi *dc) |
782 | { | 782 | { |
783 | u32 size = 0; | 783 | u32 size = 0; |
784 | const struct port *port = &dc->port[index]; | 784 | const struct port *port = &dc->port[index]; |
785 | u8 toggle = port->toggle_ul; | 785 | const u8 toggle = port->toggle_ul; |
786 | void __iomem *addr = port->ul_addr[toggle]; | 786 | void __iomem *addr = port->ul_addr[toggle]; |
787 | u32 ul_size = port->ul_size[toggle]; | 787 | const u32 ul_size = port->ul_size[toggle]; |
788 | struct tty_struct *tty = port->tty; | 788 | struct tty_struct *tty = port->tty; |
789 | 789 | ||
790 | /* Get data from tty and place in buf for now */ | 790 | /* Get data from tty and place in buf for now */ |
@@ -1732,7 +1732,7 @@ static int ntty_tiocmset(struct tty_struct *tty, struct file *file, | |||
1732 | static int ntty_cflags_changed(struct port *port, unsigned long flags, | 1732 | static int ntty_cflags_changed(struct port *port, unsigned long flags, |
1733 | struct async_icount *cprev) | 1733 | struct async_icount *cprev) |
1734 | { | 1734 | { |
1735 | struct async_icount cnow = port->tty_icount; | 1735 | const struct async_icount cnow = port->tty_icount; |
1736 | int ret; | 1736 | int ret; |
1737 | 1737 | ||
1738 | ret = ((flags & TIOCM_RNG) && (cnow.rng != cprev->rng)) || | 1738 | ret = ((flags & TIOCM_RNG) && (cnow.rng != cprev->rng)) || |
@@ -1747,7 +1747,7 @@ static int ntty_cflags_changed(struct port *port, unsigned long flags, | |||
1747 | 1747 | ||
1748 | static int ntty_ioctl_tiocgicount(struct port *port, void __user *argp) | 1748 | static int ntty_ioctl_tiocgicount(struct port *port, void __user *argp) |
1749 | { | 1749 | { |
1750 | struct async_icount cnow = port->tty_icount; | 1750 | const struct async_icount cnow = port->tty_icount; |
1751 | struct serial_icounter_struct icount; | 1751 | struct serial_icounter_struct icount; |
1752 | 1752 | ||
1753 | icount.cts = cnow.cts; | 1753 | icount.cts = cnow.cts; |
@@ -1858,7 +1858,7 @@ exit_in_buffer: | |||
1858 | return rval; | 1858 | return rval; |
1859 | } | 1859 | } |
1860 | 1860 | ||
1861 | static struct tty_operations tty_ops = { | 1861 | static const struct tty_operations tty_ops = { |
1862 | .ioctl = ntty_ioctl, | 1862 | .ioctl = ntty_ioctl, |
1863 | .open = ntty_open, | 1863 | .open = ntty_open, |
1864 | .close = ntty_close, | 1864 | .close = ntty_close, |