mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08: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
@ -105,7 +105,7 @@ static int rtq6752_get_error_flags(struct regulator_dev *rdev,
|
|||||||
unsigned int *flags)
|
unsigned int *flags)
|
||||||
{
|
{
|
||||||
unsigned int val, events = 0;
|
unsigned int val, events = 0;
|
||||||
const unsigned int fault_mask[] = {
|
static const unsigned int fault_mask[] = {
|
||||||
RTQ6752_PAVDDF_MASK, RTQ6752_NAVDDF_MASK };
|
RTQ6752_PAVDDF_MASK, RTQ6752_NAVDDF_MASK };
|
||||||
int rid = rdev_get_id(rdev), ret;
|
int rid = rdev_get_id(rdev), ret;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user