Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: rtq6752: make const read-only array fault_mask static

Don't populate the const read-only array fault_mask on the stack at run
time, instead make it static.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://patch.msgid.link/20250317165845.525593-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Colin Ian King and committed by
Mark Brown
502d16c0 0959b670

+1 -1
+1 -1
drivers/regulator/rtq6752-regulator.c
··· 105 105 unsigned int *flags) 106 106 { 107 107 unsigned int val, events = 0; 108 - const unsigned int fault_mask[] = { 108 + static const unsigned int fault_mask[] = { 109 109 RTQ6752_PAVDDF_MASK, RTQ6752_NAVDDF_MASK }; 110 110 int rid = rdev_get_id(rdev), ret; 111 111