summaryrefslogtreecommitdiff
path: root/include/linux/can/core.h
diff options
context:
space:
mode:
authorKurt Van Dijck <kurt.van.dijck@eia.be>2011-05-03 22:40:57 +0400
committerDavid S. Miller <davem@davemloft.net>2011-05-05 01:08:36 +0400
commit1650629d1800bf05ad775f974e931ca2fa03b0ff (patch)
treebabd283e21f033bd9d1a15ccb0d658de43421170 /include/linux/can/core.h
parent5a412ad7f4c95bb5b756aa12b52646e857e7c75d (diff)
downloadlinux-1650629d1800bf05ad775f974e931ca2fa03b0ff.tar.xz
can: make struct can_proto const
commit 53914b67993c724cec585863755c9ebc8446e83b had the same message. That commit did put everything in place but did not make can_proto const itself. Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/can/core.h')
-rw-r--r--include/linux/can/core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/can/core.h b/include/linux/can/core.h
index 6f70a6d3a16e..5ce6b5d62ecc 100644
--- a/include/linux/can/core.h
+++ b/include/linux/can/core.h
@@ -44,8 +44,8 @@ struct can_proto {
/* function prototypes for the CAN networklayer core (af_can.c) */
-extern int can_proto_register(struct can_proto *cp);
-extern void can_proto_unregister(struct can_proto *cp);
+extern int can_proto_register(const struct can_proto *cp);
+extern void can_proto_unregister(const struct can_proto *cp);
extern int can_rx_register(struct net_device *dev, canid_t can_id,
canid_t mask,