diff options
Diffstat (limited to 'drivers/net/wan/dscc4.c')
-rw-r--r-- | drivers/net/wan/dscc4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index d45b08d1dbc9..34cff6ce6d27 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c | |||
@@ -1358,7 +1358,7 @@ static int dscc4_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
1358 | return ret; | 1358 | return ret; |
1359 | } | 1359 | } |
1360 | 1360 | ||
1361 | static int dscc4_match(struct thingie *p, int value) | 1361 | static int dscc4_match(const struct thingie *p, int value) |
1362 | { | 1362 | { |
1363 | int i; | 1363 | int i; |
1364 | 1364 | ||
@@ -1403,7 +1403,7 @@ done: | |||
1403 | static int dscc4_encoding_setting(struct dscc4_dev_priv *dpriv, | 1403 | static int dscc4_encoding_setting(struct dscc4_dev_priv *dpriv, |
1404 | struct net_device *dev) | 1404 | struct net_device *dev) |
1405 | { | 1405 | { |
1406 | struct thingie encoding[] = { | 1406 | static const struct thingie encoding[] = { |
1407 | { ENCODING_NRZ, 0x00000000 }, | 1407 | { ENCODING_NRZ, 0x00000000 }, |
1408 | { ENCODING_NRZI, 0x00200000 }, | 1408 | { ENCODING_NRZI, 0x00200000 }, |
1409 | { ENCODING_FM_MARK, 0x00400000 }, | 1409 | { ENCODING_FM_MARK, 0x00400000 }, |
@@ -1442,7 +1442,7 @@ static int dscc4_loopback_setting(struct dscc4_dev_priv *dpriv, | |||
1442 | static int dscc4_crc_setting(struct dscc4_dev_priv *dpriv, | 1442 | static int dscc4_crc_setting(struct dscc4_dev_priv *dpriv, |
1443 | struct net_device *dev) | 1443 | struct net_device *dev) |
1444 | { | 1444 | { |
1445 | struct thingie crc[] = { | 1445 | static const struct thingie crc[] = { |
1446 | { PARITY_CRC16_PR0_CCITT, 0x00000010 }, | 1446 | { PARITY_CRC16_PR0_CCITT, 0x00000010 }, |
1447 | { PARITY_CRC16_PR1_CCITT, 0x00000000 }, | 1447 | { PARITY_CRC16_PR1_CCITT, 0x00000000 }, |
1448 | { PARITY_CRC32_PR0_CCITT, 0x00000011 }, | 1448 | { PARITY_CRC32_PR0_CCITT, 0x00000011 }, |