Skip to content

Commit 502d16c

Browse files
ColinIanKingbroonie
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0959b67 commit 502d16c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/rtq6752-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int rtq6752_get_error_flags(struct regulator_dev *rdev,
105105
unsigned int *flags)
106106
{
107107
unsigned int val, events = 0;
108-
const unsigned int fault_mask[] = {
108+
static const unsigned int fault_mask[] = {
109109
RTQ6752_PAVDDF_MASK, RTQ6752_NAVDDF_MASK };
110110
int rid = rdev_get_id(rdev), ret;
111111

0 commit comments

Comments
 (0)