mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-04 01:36:58 -05:00
can: xilinx_can: mark bit timing constants as const
[ Upstream commit ae38fda02996d43d9fb09f16e81e0008704dd524 ]
This patch marks the bit timing constants as const.
Fixes: c223da6893 ("can: xilinx_can: Add support for CANFD FD frames")
Link: https://lore.kernel.org/all/[email protected]
Cc: Appana Durga Kedareswara rao <[email protected]>
Cc: Naga Sureshkumar Relli <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
6077a1e637
commit
e4594ca90b
1 changed files with 2 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ static const struct can_bittiming_const xcan_bittiming_const_canfd = {
|
|||
};
|
||||
|
||||
/* AXI CANFD Data Bittiming constants as per AXI CANFD 1.0 specs */
|
||||
static struct can_bittiming_const xcan_data_bittiming_const_canfd = {
|
||||
static const struct can_bittiming_const xcan_data_bittiming_const_canfd = {
|
||||
.name = DRIVER_NAME,
|
||||
.tseg1_min = 1,
|
||||
.tseg1_max = 16,
|
||||
|
|
@ -265,7 +265,7 @@ static const struct can_bittiming_const xcan_bittiming_const_canfd2 = {
|
|||
};
|
||||
|
||||
/* AXI CANFD 2.0 Data Bittiming constants as per AXI CANFD 2.0 spec */
|
||||
static struct can_bittiming_const xcan_data_bittiming_const_canfd2 = {
|
||||
static const struct can_bittiming_const xcan_data_bittiming_const_canfd2 = {
|
||||
.name = DRIVER_NAME,
|
||||
.tseg1_min = 1,
|
||||
.tseg1_max = 32,
|
||||
|
|
|
|||
Loading…
Reference in a new issue