aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/c_can/c_can.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2012-07-16 06:58:31 -0400
committerMarc Kleine-Budde <mkl@pengutronix.de>2012-07-20 06:31:05 -0400
commit194b9a4cb91713ddb60c9f98f7212f6d8cb8e05f (patch)
tree5d32819f28dac1346f827a35afe6f626b8dd807c /drivers/net/can/c_can/c_can.c
parent769162e38b91e1d300752e666260fa6c7b203fbc (diff)
can: mark bittiming_const pointer in struct can_priv as const
This patch marks the bittiming_const pointer as in the struct can_pric as "const". This allows us to mark the struct can_bittiming_const in the CAN drivers as "const", too. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/c_can/c_can.c')
-rw-r--r--drivers/net/can/c_can/c_can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c
index eea660800a09..4c538e388655 100644
--- a/drivers/net/can/c_can/c_can.c
+++ b/drivers/net/can/c_can/c_can.c
@@ -189,7 +189,7 @@ enum c_can_bus_error_types {
189 C_CAN_ERROR_PASSIVE, 189 C_CAN_ERROR_PASSIVE,
190}; 190};
191 191
192static struct can_bittiming_const c_can_bittiming_const = { 192static const struct can_bittiming_const c_can_bittiming_const = {
193 .name = KBUILD_MODNAME, 193 .name = KBUILD_MODNAME,
194 .tseg1_min = 2, /* Time segment 1 = prop_seg + phase_seg1 */ 194 .tseg1_min = 2, /* Time segment 1 = prop_seg + phase_seg1 */
195 .tseg1_max = 16, 195 .tseg1_max = 16,