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:
ee96750
)
mfd: tps65218: Constify struct regmap_irq_chip
author
Javier Carrasco
<javier.carrasco.cruz@gmail.com>
Thu, 4 Jul 2024 17:23:27 +0000
(19:23 +0200)
committer
Lee Jones
<lee@kernel.org>
Fri, 30 Aug 2024 08:40:12 +0000
(09:40 +0100)
`tps65218_irq_chip` 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-17-0c8785b1331d@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/tps65218.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/tps65218.c
b/drivers/mfd/tps65218.c
index 427a2b97f11711ab6bd45ed40876668b4e035d4b..4f3e632f726ff325b5b67a31d9c4ff501002e9fc 100644
(file)
--- a/
drivers/mfd/tps65218.c
+++ b/
drivers/mfd/tps65218.c
@@
-186,7
+186,7
@@
static const struct regmap_irq tps65218_irqs[] = {
},
};
-static struct regmap_irq_chip tps65218_irq_chip = {
+static
const
struct regmap_irq_chip tps65218_irq_chip = {
.name = "tps65218",
.irqs = tps65218_irqs,
.num_irqs = ARRAY_SIZE(tps65218_irqs),