diff options
author | Joe Perches <joe@perches.com> | 2014-12-10 13:28:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-10 15:33:16 -0500 |
commit | 785c20a08bead1e58ad53f2dc324782da7a0c9ea (patch) | |
tree | 1fbf9ac09b89dea8754927e84a54c15ad3e47d0a /net/irda/qos.c | |
parent | 22bbf5f3e4e4db4a94f18d7b1ba21b5bd5fd934b (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/qos.c')
-rw-r--r-- | net/irda/qos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/irda/qos.c b/net/irda/qos.c index 5ed6c9a7baee..25ba8509ad3e 100644 --- a/net/irda/qos.c +++ b/net/irda/qos.c | |||
@@ -122,7 +122,7 @@ static __u32 max_line_capacities[10][4] = { | |||
122 | { 800000, 400000, 160000, 80000 }, /* 16000000 bps */ | 122 | { 800000, 400000, 160000, 80000 }, /* 16000000 bps */ |
123 | }; | 123 | }; |
124 | 124 | ||
125 | static pi_minor_info_t pi_minor_call_table_type_0[] = { | 125 | static const pi_minor_info_t pi_minor_call_table_type_0[] = { |
126 | { NULL, 0 }, | 126 | { NULL, 0 }, |
127 | /* 01 */{ irlap_param_baud_rate, PV_INTEGER | PV_LITTLE_ENDIAN }, | 127 | /* 01 */{ irlap_param_baud_rate, PV_INTEGER | PV_LITTLE_ENDIAN }, |
128 | { NULL, 0 }, | 128 | { NULL, 0 }, |
@@ -134,7 +134,7 @@ static pi_minor_info_t pi_minor_call_table_type_0[] = { | |||
134 | /* 08 */{ irlap_param_link_disconnect, PV_INT_8_BITS } | 134 | /* 08 */{ irlap_param_link_disconnect, PV_INT_8_BITS } |
135 | }; | 135 | }; |
136 | 136 | ||
137 | static pi_minor_info_t pi_minor_call_table_type_1[] = { | 137 | static const pi_minor_info_t pi_minor_call_table_type_1[] = { |
138 | { NULL, 0 }, | 138 | { NULL, 0 }, |
139 | { NULL, 0 }, | 139 | { NULL, 0 }, |
140 | /* 82 */{ irlap_param_max_turn_time, PV_INT_8_BITS }, | 140 | /* 82 */{ irlap_param_max_turn_time, PV_INT_8_BITS }, |
@@ -144,7 +144,7 @@ static pi_minor_info_t pi_minor_call_table_type_1[] = { | |||
144 | /* 86 */{ irlap_param_min_turn_time, PV_INT_8_BITS }, | 144 | /* 86 */{ irlap_param_min_turn_time, PV_INT_8_BITS }, |
145 | }; | 145 | }; |
146 | 146 | ||
147 | static pi_major_info_t pi_major_call_table[] = { | 147 | static const pi_major_info_t pi_major_call_table[] = { |
148 | { pi_minor_call_table_type_0, 9 }, | 148 | { pi_minor_call_table_type_0, 9 }, |
149 | { pi_minor_call_table_type_1, 7 }, | 149 | { pi_minor_call_table_type_1, 7 }, |
150 | }; | 150 | }; |