projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bc6a6b
)
mfd: mc13xxx-spi: Constify struct regmap_bus
author
Javier Carrasco
<javier.carrasco.cruz@gmail.com>
Thu, 4 Jul 2024 17:23:33 +0000
(19:23 +0200)
committer
Lee Jones
<lee@kernel.org>
Fri, 30 Aug 2024 08:40:13 +0000
(09:40 +0100)
`regmap_mc13xxx_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link:
https://lore.kernel.org/r/20240704-mfd-const-regmap_config-v2-23-0c8785b1331d@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/mc13xxx-spi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/mc13xxx-spi.c
b/drivers/mfd/mc13xxx-spi.c
index c973e2579bdfb617a5e9749a9cad4d48c30cbdf3..9f438d5d4326cb7114842ce0ab58cea68d98bd88 100644
(file)
--- a/
drivers/mfd/mc13xxx-spi.c
+++ b/
drivers/mfd/mc13xxx-spi.c
@@
-116,7
+116,7
@@
static int mc13xxx_spi_write(void *context, const void *data, size_t count)
* single transfer.
*/
-static struct regmap_bus regmap_mc13xxx_bus = {
+static
const
struct regmap_bus regmap_mc13xxx_bus = {
.write = mc13xxx_spi_write,
.read = mc13xxx_spi_read,
};