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:
7206d72
)
mfd: tps65086: Constify struct regmap_irq_chip
author
Javier Carrasco
<javier.carrasco.cruz@gmail.com>
Thu, 4 Jul 2024 17:23:25 +0000
(19:23 +0200)
committer
Lee Jones
<lee@kernel.org>
Fri, 30 Aug 2024 08:40:12 +0000
(09:40 +0100)
`tps65086_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-15-0c8785b1331d@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/tps65086.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/tps65086.c
b/drivers/mfd/tps65086.c
index 5ef0a7e0d61d8c6f142e62f0703423a66c00f9b6..54832e9321b95d14631281550c143206d8b2a37f 100644
(file)
--- a/
drivers/mfd/tps65086.c
+++ b/
drivers/mfd/tps65086.c
@@
-45,7
+45,7
@@
static const struct regmap_irq tps65086_irqs[] = {
REGMAP_IRQ_REG(TPS65086_IRQ_FAULT, 0, TPS65086_IRQ_FAULT_MASK),
};
-static struct regmap_irq_chip tps65086_irq_chip = {
+static
const
struct regmap_irq_chip tps65086_irq_chip = {
.name = "tps65086",
.status_base = TPS65086_IRQ,
.mask_base = TPS65086_IRQ_MASK,