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:
ef29932
)
mfd: sprd-sc27xx-spi: Constify struct regmap_bus
author
Javier Carrasco
<javier.carrasco.cruz@gmail.com>
Thu, 4 Jul 2024 17:23:34 +0000
(19:23 +0200)
committer
Lee Jones
<lee@kernel.org>
Fri, 30 Aug 2024 08:40:13 +0000
(09:40 +0100)
`sprd_pmic_regmap` 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>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link:
https://lore.kernel.org/r/20240704-mfd-const-regmap_config-v2-24-0c8785b1331d@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/sprd-sc27xx-spi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/sprd-sc27xx-spi.c
b/drivers/mfd/sprd-sc27xx-spi.c
index 81e517cdfb27d98cd031e29582bd562a0e51aec4..7186e2108108f0d779bfe72d476fa333194c23ca 100644
(file)
--- a/
drivers/mfd/sprd-sc27xx-spi.c
+++ b/
drivers/mfd/sprd-sc27xx-spi.c
@@
-135,7
+135,7
@@
static int sprd_pmic_spi_read(void *context,
return 0;
}
-static struct regmap_bus sprd_pmic_regmap = {
+static
const
struct regmap_bus sprd_pmic_regmap = {
.write = sprd_pmic_spi_write,
.read = sprd_pmic_spi_read,
.reg_format_endian_default = REGMAP_ENDIAN_NATIVE,