mirror of
https://github.com/torvalds/linux.git
synced 2025-11-30 23:16:01 +07:00
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>
This commit is contained in:
committed by
Mark Brown
parent
0959b67063
commit
502d16c0bd
@@ -105,7 +105,7 @@ static int rtq6752_get_error_flags(struct regulator_dev *rdev,
|
||||
unsigned int *flags)
|
||||
{
|
||||
unsigned int val, events = 0;
|
||||
const unsigned int fault_mask[] = {
|
||||
static const unsigned int fault_mask[] = {
|
||||
RTQ6752_PAVDDF_MASK, RTQ6752_NAVDDF_MASK };
|
||||
int rid = rdev_get_id(rdev), ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user