Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1832733 authored by David Collins's avatar David Collins
Browse files

regulator: qpnp-regulator: fix qpnp_print_actions const usage



The const keyword is not being used correctly for the
qpnp_print_actions array in qpnp-regulator.c.  The array pointer
itself should be specified as const as well.

Change-Id: I0d6f2323d3add646696a7d1453cb58300258c215
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent a1fcbd2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1105,7 +1105,7 @@ static irqreturn_t qpnp_regulator_vs_ocp_isr(int irq, void *data)
	return IRQ_HANDLED;
}

static const char const *qpnp_print_actions[] = {
static const char * const qpnp_print_actions[] = {
	[QPNP_REGULATOR_ACTION_INIT]	= "initial    ",
	[QPNP_REGULATOR_ACTION_ENABLE]	= "enable     ",
	[QPNP_REGULATOR_ACTION_DISABLE]	= "disable    ",