aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/parameters.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/irda/parameters.c')
-rw-r--r--net/irda/parameters.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/irda/parameters.c b/net/irda/parameters.c
index 006786bfdd65..16ce32ffe004 100644
--- a/net/irda/parameters.c
+++ b/net/irda/parameters.c
@@ -52,7 +52,7 @@ static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi,
52static int irda_param_unpack(__u8 *buf, char *fmt, ...); 52static int irda_param_unpack(__u8 *buf, char *fmt, ...);
53 53
54/* Parameter value call table. Must match PV_TYPE */ 54/* Parameter value call table. Must match PV_TYPE */
55static PV_HANDLER pv_extract_table[] = { 55static const PV_HANDLER pv_extract_table[] = {
56 irda_extract_integer, /* Handler for any length integers */ 56 irda_extract_integer, /* Handler for any length integers */
57 irda_extract_integer, /* Handler for 8 bits integers */ 57 irda_extract_integer, /* Handler for 8 bits integers */
58 irda_extract_integer, /* Handler for 16 bits integers */ 58 irda_extract_integer, /* Handler for 16 bits integers */
@@ -62,7 +62,7 @@ static PV_HANDLER pv_extract_table[] = {
62 irda_extract_no_value /* Handler for no value parameters */ 62 irda_extract_no_value /* Handler for no value parameters */
63}; 63};
64 64
65static PV_HANDLER pv_insert_table[] = { 65static const PV_HANDLER pv_insert_table[] = {
66 irda_insert_integer, /* Handler for any length integers */ 66 irda_insert_integer, /* Handler for any length integers */
67 irda_insert_integer, /* Handler for 8 bits integers */ 67 irda_insert_integer, /* Handler for 8 bits integers */
68 irda_insert_integer, /* Handler for 16 bits integers */ 68 irda_insert_integer, /* Handler for 16 bits integers */
@@ -449,7 +449,7 @@ static int irda_param_unpack(__u8 *buf, char *fmt, ...)
449int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len, 449int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len,
450 pi_param_info_t *info) 450 pi_param_info_t *info)
451{ 451{
452 pi_minor_info_t *pi_minor_info; 452 const pi_minor_info_t *pi_minor_info;
453 __u8 pi_minor; 453 __u8 pi_minor;
454 __u8 pi_major; 454 __u8 pi_major;
455 int type; 455 int type;
@@ -504,7 +504,7 @@ EXPORT_SYMBOL(irda_param_insert);
504static int irda_param_extract(void *self, __u8 *buf, int len, 504static int irda_param_extract(void *self, __u8 *buf, int len,
505 pi_param_info_t *info) 505 pi_param_info_t *info)
506{ 506{
507 pi_minor_info_t *pi_minor_info; 507 const pi_minor_info_t *pi_minor_info;
508 __u8 pi_minor; 508 __u8 pi_minor;
509 __u8 pi_major; 509 __u8 pi_major;
510 int type; 510 int type;