[ATM]: [lanai] better constification

Signed-off-by: Mitchell Blank Jr <mitch@sfgoth.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Mitchell Blank Jr and committed by David S. Miller c22c28f6 c219750b

+6 -5
+6 -5
drivers/atm/lanai.c
··· 305 * vci with their bit set 306 */ 307 static void vci_bitfield_iterate(struct lanai_dev *lanai, 308 - /*const*/ unsigned long *lp, 309 void (*func)(struct lanai_dev *,vci_t vci)) 310 { 311 vci_t vci = find_first_bit(lp, NUM_VCI); ··· 951 /* read a big-endian 4-byte value out of eeprom */ 952 static inline u32 eeprom_be4(const struct lanai_dev *lanai, int address) 953 { 954 - return be32_to_cpup((u32 *) (&lanai->eeprom[address])); 955 } 956 957 /* Checksum/validate EEPROM contents */ ··· 1160 } 1161 1162 /* test if VCC is currently backlogged */ 1163 - static inline int vcc_is_backlogged(/*const*/ struct lanai_vcc *lvcc) 1164 { 1165 return !skb_queue_empty(&lvcc->tx.backlog); 1166 } ··· 1395 { 1396 int size; 1397 struct sk_buff *skb; 1398 - /*const*/ u32 *x, *end = &lvcc->rx.buf.start[endptr * 4]; 1399 int n = ((unsigned long) end) - ((unsigned long) lvcc->rx.buf.ptr); 1400 if (n < 0) 1401 n += lanai_buf_size(&lvcc->rx.buf); ··· 2112 * shifted by that much as we compute 2113 * 2114 */ 2115 - static int pcr_to_cbricg(/*const*/ struct atm_qos *qos) 2116 { 2117 int rounddown = 0; /* 1 = Round PCR down, i.e. round ICG _up_ */ 2118 int x, icg, pcr = atm_pcr_goal(&qos->txtp);
··· 305 * vci with their bit set 306 */ 307 static void vci_bitfield_iterate(struct lanai_dev *lanai, 308 + const unsigned long *lp, 309 void (*func)(struct lanai_dev *,vci_t vci)) 310 { 311 vci_t vci = find_first_bit(lp, NUM_VCI); ··· 951 /* read a big-endian 4-byte value out of eeprom */ 952 static inline u32 eeprom_be4(const struct lanai_dev *lanai, int address) 953 { 954 + return be32_to_cpup((const u32 *) &lanai->eeprom[address]); 955 } 956 957 /* Checksum/validate EEPROM contents */ ··· 1160 } 1161 1162 /* test if VCC is currently backlogged */ 1163 + static inline int vcc_is_backlogged(const struct lanai_vcc *lvcc) 1164 { 1165 return !skb_queue_empty(&lvcc->tx.backlog); 1166 } ··· 1395 { 1396 int size; 1397 struct sk_buff *skb; 1398 + const u32 *x; 1399 + u32 *end = &lvcc->rx.buf.start[endptr * 4]; 1400 int n = ((unsigned long) end) - ((unsigned long) lvcc->rx.buf.ptr); 1401 if (n < 0) 1402 n += lanai_buf_size(&lvcc->rx.buf); ··· 2111 * shifted by that much as we compute 2112 * 2113 */ 2114 + static int pcr_to_cbricg(const struct atm_qos *qos) 2115 { 2116 int rounddown = 0; /* 1 = Round PCR down, i.e. round ICG _up_ */ 2117 int x, icg, pcr = atm_pcr_goal(&qos->txtp);