diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-09-16 11:04:29 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-16 23:20:20 (GMT) |
commit | d97a077a15ae21e161e74def7762caa99200e4cf (patch) | |
tree | 2c017dad747ab7d1ddb5fc090d1d3b1038f0c33f /include | |
parent | 026359bc6eddfdc2d2e684bf0b51691649b90f33 (diff) | |
download | linux-fsl-qoriq-d97a077a15ae21e161e74def7762caa99200e4cf.tar.xz |
wan: make LAPB callbacks const
This is compile tested only.
Suggested by dumpster diving in PAX.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/lapb.h | 3 | ||||
-rw-r--r-- | include/net/lapb.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/lapb.h b/include/linux/lapb.h index ce709e1..873c1eb 100644 --- a/include/linux/lapb.h +++ b/include/linux/lapb.h @@ -44,7 +44,8 @@ struct lapb_parms_struct { unsigned int mode; }; -extern int lapb_register(struct net_device *dev, struct lapb_register_struct *callbacks); +extern int lapb_register(struct net_device *dev, + const struct lapb_register_struct *callbacks); extern int lapb_unregister(struct net_device *dev); extern int lapb_getparms(struct net_device *dev, struct lapb_parms_struct *parms); extern int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms); diff --git a/include/net/lapb.h b/include/net/lapb.h index 96cb5dd..fd2bf57 100644 --- a/include/net/lapb.h +++ b/include/net/lapb.h @@ -95,7 +95,7 @@ struct lapb_cb { struct sk_buff_head write_queue; struct sk_buff_head ack_queue; unsigned char window; - struct lapb_register_struct callbacks; + const struct lapb_register_struct *callbacks; /* FRMR control information */ struct lapb_frame frmr_data; |