mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01: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:
parent
0959b67063
commit
502d16c0bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue