projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67def4e
)
can: tcan4x5x: mark struct regmap_bus tcan4x5x_bus as constant
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Tue, 15 Dec 2020 23:17:35 +0000
(
00:17
+0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Wed, 6 Jan 2021 14:15:38 +0000
(15:15 +0100)
This patch marks the struct regmap_bus tcan4x5x_bus as constant.
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Tested-by: Sean Nyekjaer <sean@geanix.com>
Link:
https://lore.kernel.org/r/20201215231746.1132907-6-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x-regmap.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/m_can/tcan4x5x-regmap.c
b/drivers/net/can/m_can/tcan4x5x-regmap.c
index f130c3586543882a80187c0e77bbfbd0cf75f392..1d139554fc16f1a00dbcfa590b661ab53f9b6277 100644
(file)
--- 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,