aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/cycx_drv.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2010-09-02 10:29:35 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-06 16:32:20 -0400
commitdcfc5d787a24b9a20be3e18e3dbbab5280d35e38 (patch)
treeda976087c2112809566f4b9e5736e0ed354554a5 /drivers/net/wan/cycx_drv.c
parentadea1ac7effbddbe60a9de6d63462bfe79289e59 (diff)
wan: make read-only data const
Change several wan drivers to make strings and other initialize only parameters const. Compile tested only (with no new warnings) Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/cycx_drv.c')
-rw-r--r--drivers/net/wan/cycx_drv.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wan/cycx_drv.c b/drivers/net/wan/cycx_drv.c
index a5ddc6c8963e..164c3624ba89 100644
--- a/drivers/net/wan/cycx_drv.c
+++ b/drivers/net/wan/cycx_drv.c
@@ -73,7 +73,7 @@ static int reset_cyc2x(void __iomem *addr);
73static int detect_cyc2x(void __iomem *addr); 73static int detect_cyc2x(void __iomem *addr);
74 74
75/* Miscellaneous functions */ 75/* Miscellaneous functions */
76static int get_option_index(long *optlist, long optval); 76static int get_option_index(const long *optlist, long optval);
77static u16 checksum(u8 *buf, u32 len); 77static u16 checksum(u8 *buf, u32 len);
78 78
79#define wait_cyc(addr) cycx_exec(addr + CMD_OFFSET) 79#define wait_cyc(addr) cycx_exec(addr + CMD_OFFSET)
@@ -81,23 +81,23 @@ static u16 checksum(u8 *buf, u32 len);
81/* Global Data */ 81/* Global Data */
82 82
83/* private data */ 83/* private data */
84static char modname[] = "cycx_drv"; 84static const char modname[] = "cycx_drv";
85static char fullname[] = "Cyclom 2X Support Module"; 85static const char fullname[] = "Cyclom 2X Support Module";
86static char copyright[] = "(c) 1998-2003 Arnaldo Carvalho de Melo " 86static const char copyright[] = "(c) 1998-2003 Arnaldo Carvalho de Melo "
87 "<acme@conectiva.com.br>"; 87 "<acme@conectiva.com.br>";
88 88
89/* Hardware configuration options. 89/* Hardware configuration options.
90 * These are arrays of configuration options used by verification routines. 90 * These are arrays of configuration options used by verification routines.
91 * The first element of each array is its size (i.e. number of options). 91 * The first element of each array is its size (i.e. number of options).
92 */ 92 */
93static long cyc2x_dpmbase_options[] = { 93static const long cyc2x_dpmbase_options[] = {
94 20, 94 20,
95 0xA0000, 0xA4000, 0xA8000, 0xAC000, 0xB0000, 0xB4000, 0xB8000, 95 0xA0000, 0xA4000, 0xA8000, 0xAC000, 0xB0000, 0xB4000, 0xB8000,
96 0xBC000, 0xC0000, 0xC4000, 0xC8000, 0xCC000, 0xD0000, 0xD4000, 96 0xBC000, 0xC0000, 0xC4000, 0xC8000, 0xCC000, 0xD0000, 0xD4000,
97 0xD8000, 0xDC000, 0xE0000, 0xE4000, 0xE8000, 0xEC000 97 0xD8000, 0xDC000, 0xE0000, 0xE4000, 0xE8000, 0xEC000
98}; 98};
99 99
100static long cycx_2x_irq_options[] = { 7, 3, 5, 9, 10, 11, 12, 15 }; 100static const long cycx_2x_irq_options[] = { 7, 3, 5, 9, 10, 11, 12, 15 };
101 101
102/* Kernel Loadable Module Entry Points */ 102/* Kernel Loadable Module Entry Points */
103/* Module 'insert' entry point. 103/* Module 'insert' entry point.
@@ -529,7 +529,7 @@ static int detect_cyc2x(void __iomem *addr)
529/* Miscellaneous */ 529/* Miscellaneous */
530/* Get option's index into the options list. 530/* Get option's index into the options list.
531 * Return option's index (1 .. N) or zero if option is invalid. */ 531 * Return option's index (1 .. N) or zero if option is invalid. */
532static int get_option_index(long *optlist, long optval) 532static int get_option_index(const long *optlist, long optval)
533{ 533{
534 int i = 1; 534 int i = 1;
535 535