aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/irttp.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-12-10 13:28:58 -0500
committerDavid S. Miller <davem@davemloft.net>2014-12-10 15:33:16 -0500
commit785c20a08bead1e58ad53f2dc324782da7a0c9ea (patch)
tree1fbf9ac09b89dea8754927e84a54c15ad3e47d0a /net/irda/irttp.c
parent22bbf5f3e4e4db4a94f18d7b1ba21b5bd5fd934b (diff)
irda: Convert function pointer arrays and uses to const
Making things const is a good thing. (x86-64 defconfig with all irda) $ size net/irda/built-in.o* text data bss dec hex filename 109276 1868 244 111388 1b31c net/irda/built-in.o.new 108828 2316 244 111388 1b31c net/irda/built-in.o.old Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/irttp.c')
-rw-r--r--net/irda/irttp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/irda/irttp.c b/net/irda/irttp.c
index 3ef0b08b6bf5..b6ab41d5b3a3 100644
--- a/net/irda/irttp.c
+++ b/net/irda/irttp.c
@@ -71,11 +71,13 @@ static void irttp_status_indication(void *instance,
71 LINK_STATUS link, LOCK_STATUS lock); 71 LINK_STATUS link, LOCK_STATUS lock);
72 72
73/* Information for parsing parameters in IrTTP */ 73/* Information for parsing parameters in IrTTP */
74static pi_minor_info_t pi_minor_call_table[] = { 74static const pi_minor_info_t pi_minor_call_table[] = {
75 { NULL, 0 }, /* 0x00 */ 75 { NULL, 0 }, /* 0x00 */
76 { irttp_param_max_sdu_size, PV_INTEGER | PV_BIG_ENDIAN } /* 0x01 */ 76 { irttp_param_max_sdu_size, PV_INTEGER | PV_BIG_ENDIAN } /* 0x01 */
77}; 77};
78static pi_major_info_t pi_major_call_table[] = { { pi_minor_call_table, 2 } }; 78static const pi_major_info_t pi_major_call_table[] = {
79 { pi_minor_call_table, 2 }
80};
79static pi_param_info_t param_info = { pi_major_call_table, 1, 0x0f, 4 }; 81static pi_param_info_t param_info = { pi_major_call_table, 1, 0x0f, 4 };
80 82
81/************************ GLOBAL PROCEDURES ************************/ 83/************************ GLOBAL PROCEDURES ************************/