diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2016-07-04 14:45:44 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-02-06 15:13:30 +0100 |
commit | a3c11a7ac6cdd670324df39244ed1d2321bb0c9c (patch) | |
tree | 263c06d2db6dfe91759c0ae7f5288acc12ae08eb /drivers/net/can | |
parent | 1c10feee3e033b898a293d813ef4a4ebfb88dba2 (diff) | |
download | op-kernel-dev-a3c11a7ac6cdd670324df39244ed1d2321bb0c9c.zip op-kernel-dev-a3c11a7ac6cdd670324df39244ed1d2321bb0c9c.tar.gz |
can: flexcan: make declaration of devtype_data const
This patch changes the declaration of the devtype data to const.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/flexcan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index 44a5aae..84e465a9 100644 --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -268,17 +268,17 @@ struct flexcan_priv { struct regulator *reg_xceiver; }; -static struct flexcan_devtype_data fsl_p1010_devtype_data = { +static const struct flexcan_devtype_data fsl_p1010_devtype_data = { .quirks = FLEXCAN_QUIRK_BROKEN_ERR_STATE, }; -static struct flexcan_devtype_data fsl_imx28_devtype_data; +static const struct flexcan_devtype_data fsl_imx28_devtype_data; -static struct flexcan_devtype_data fsl_imx6q_devtype_data = { +static const struct flexcan_devtype_data fsl_imx6q_devtype_data = { .quirks = FLEXCAN_QUIRK_DISABLE_RXFG, }; -static struct flexcan_devtype_data fsl_vf610_devtype_data = { +static const struct flexcan_devtype_data fsl_vf610_devtype_data = { .quirks = FLEXCAN_QUIRK_DISABLE_RXFG | FLEXCAN_QUIRK_DISABLE_MECR, }; |