mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
can: mpc5xxx_can: make data used as *of_device_id.data const
Since of_device_id.data is declared as a pointer to const data a few more consts can be added in this driver. [ukl: split Arnd's patch by driver] Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Marc Kleine-Budde <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]>
This commit is contained in:
committed by
Uwe Kleine-König
parent
306e352ab1
commit
6d99c4c5d2
@@ -380,12 +380,12 @@ static int mpc5xxx_can_resume(struct platform_device *ofdev)
|
||||
}
|
||||
#endif
|
||||
|
||||
static struct mpc5xxx_can_data __devinitdata mpc5200_can_data = {
|
||||
static const struct mpc5xxx_can_data __devinitdata mpc5200_can_data = {
|
||||
.type = MSCAN_TYPE_MPC5200,
|
||||
.get_clock = mpc52xx_can_get_clock,
|
||||
};
|
||||
|
||||
static struct mpc5xxx_can_data __devinitdata mpc5121_can_data = {
|
||||
static const struct mpc5xxx_can_data __devinitdata mpc5121_can_data = {
|
||||
.type = MSCAN_TYPE_MPC5121,
|
||||
.get_clock = mpc512x_can_get_clock,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user