]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mfd: 88pm886: Constify struct regmap_irq_chip and some other structures
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 11 May 2025 20:42:30 +0000 (22:42 +0200)
committerLee Jones <lee@kernel.org>
Fri, 23 May 2025 07:49:14 +0000 (08:49 +0100)
commit950a3c38f73d8167409b2d229ce5139b2be4eff7
tree271b2c9f06cad371ee9c5e1004b7b5e1da0b04f1
parentbdc76c19db1b969d3d7d5da9cccfb39c6bbe6a5c
mfd: 88pm886: Constify struct regmap_irq_chip and some other structures

'struct regmap_irq_chip' is not modified in this driver.

Constifying this structure moves some data to a read-only section, so
increase overall security, especially when the structure holds some
function pointers.

While at it, also constify some other structures.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text    data     bss     dec     hex filename
   5032    3304      64    8400    20d0 drivers/mfd/88pm886.o

After:
=====
   text    data     bss     dec     hex filename
   5800    2536      64    8400    20d0 drivers/mfd/88pm886.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/1681629840761e30494cb8920668710df60a81b8.1746996137.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/88pm886.c