From: Marc Kleine-Budde Date: Tue, 15 Dec 2020 23:17:35 +0000 (+0100) Subject: can: tcan4x5x: mark struct regmap_bus tcan4x5x_bus as constant X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1784aa1449b45edad93ee7d9a50b442bc0ba4a59;p=linux.git can: tcan4x5x: mark struct regmap_bus tcan4x5x_bus as constant This patch marks the struct regmap_bus tcan4x5x_bus as constant. Reviewed-by: Dan Murphy Tested-by: Sean Nyekjaer Link: https://lore.kernel.org/r/20201215231746.1132907-6-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde --- diff --git a/drivers/net/can/m_can/tcan4x5x-regmap.c b/drivers/net/can/m_can/tcan4x5x-regmap.c index f130c35865438..1d139554fc16f 100644 --- a/drivers/net/can/m_can/tcan4x5x-regmap.c +++ b/drivers/net/can/m_can/tcan4x5x-regmap.c @@ -76,7 +76,7 @@ static const struct regmap_config tcan4x5x_regmap = { .max_register = TCAN4X5X_MAX_REGISTER, }; -static struct regmap_bus tcan4x5x_bus = { +static const struct regmap_bus tcan4x5x_bus = { .write = tcan4x5x_regmap_write, .gather_write = regmap_spi_gather_write, .async_write = regmap_spi_async_write,