]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
can: make struct proto const
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 19 Apr 2011 13:03:41 +0000 (13:03 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 19 Apr 2011 13:03:41 +0000 (13:03 +0000)
commit51bc05c36e76e16ec6d7217718981c1bace08b0a
tree23f27e563615d53d226f1c2a846d9faa7c9456c7
parent316e313d3bf4845638d4c897d936dbd401397779
can: make struct proto const

can_ioctl is the only reason for struct proto to be non-const.
script/check-patch.pl suggests struct proto be const.

Setting the reference to the common can_ioctl() in all CAN protocols directly
removes the need to make the struct proto writable in af_can.c

Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1237 030b6a49-0b11-0410-94ab-b0dab22257f2
kernel/2.6/include/socketcan/can/core.h
kernel/2.6/net/can/af_can.c
kernel/2.6/net/can/bcm-prior-2-6-22.c
kernel/2.6/net/can/bcm.c
kernel/2.6/net/can/isotp.c
kernel/2.6/net/can/raw.c