]> git.baikalelectronics.ru Git - kernel.git/commit
can: m_can: make custom bittiming fields const
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Mon, 15 Nov 2021 09:18:51 +0000 (10:18 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 7 Dec 2021 08:51:41 +0000 (09:51 +0100)
commit4864beedda44b72e02b0866b0ccc3afd30579eff
tree5a8bf656824dffa61a5300ef3e4e9a70a89610af
parent3910ecf0cac33ce5635b39105b29466df3a7fc45
can: m_can: make custom bittiming fields const

The assigned timing structs will be defined a const anyway, so we can
avoid a few casts by declaring the struct fields as const as well.

Link: https://lore.kernel.org/all/4508fa4e639164b2584c49a065d90c78a91fa568.1636967198.git.matthias.schiffer@ew.tq-group.com
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.h