can: make struct proto const
authorOliver Hartkopp <socketcan@hartkopp.net>
Tue, 22 Mar 2011 08:27:25 +0000 (08:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Mar 2011 06:34:59 +0000 (23:34 -0700)
commit53914b67993c724cec585863755c9ebc8446e83b
tree851d031dd41a74c7e03436ca7c98455fee1c598e
parent3b261ade4224852ed841ecfd13876db812846e96
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>
include/linux/can/core.h
net/can/af_can.c
net/can/bcm.c
net/can/raw.c