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 /include | |
| 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 'include')
| -rw-r--r-- | include/net/irda/parameters.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/irda/parameters.h b/include/net/irda/parameters.h index 42713c931d1f..2d9cd0007cba 100644 --- a/include/net/irda/parameters.h +++ b/include/net/irda/parameters.h | |||
| @@ -71,17 +71,17 @@ typedef int (*PV_HANDLER)(void *self, __u8 *buf, int len, __u8 pi, | |||
| 71 | PV_TYPE type, PI_HANDLER func); | 71 | PV_TYPE type, PI_HANDLER func); |
| 72 | 72 | ||
| 73 | typedef struct { | 73 | typedef struct { |
| 74 | PI_HANDLER func; /* Handler for this parameter identifier */ | 74 | const PI_HANDLER func; /* Handler for this parameter identifier */ |
| 75 | PV_TYPE type; /* Data type for this parameter */ | 75 | PV_TYPE type; /* Data type for this parameter */ |
| 76 | } pi_minor_info_t; | 76 | } pi_minor_info_t; |
| 77 | 77 | ||
| 78 | typedef struct { | 78 | typedef struct { |
| 79 | pi_minor_info_t *pi_minor_call_table; | 79 | const pi_minor_info_t *pi_minor_call_table; |
| 80 | int len; | 80 | int len; |
| 81 | } pi_major_info_t; | 81 | } pi_major_info_t; |
| 82 | 82 | ||
| 83 | typedef struct { | 83 | typedef struct { |
| 84 | pi_major_info_t *tables; | 84 | const pi_major_info_t *tables; |
| 85 | int len; | 85 | int len; |
| 86 | __u8 pi_mask; | 86 | __u8 pi_mask; |
| 87 | int pi_major_offset; | 87 | int pi_major_offset; |
