From: Axel Lin Date: Thu, 21 Feb 2019 13:17:21 +0000 (+0800) Subject: regulator: s5m8767: Constify s5m8767_opmode_reg X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=21687b16248530bec6b950d73a58e4c2eca8e830;p=linux.git regulator: s5m8767: Constify s5m8767_opmode_reg The s5m8767_opmode_reg should never change, make it const. Signed-off-by: Axel Lin Reviewed-by: Krzysztof Kozlowski Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index b581f01f33957..5b0e1fe6723fc 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c @@ -115,7 +115,7 @@ static const struct sec_voltage_desc *reg_voltage_map[] = { [S5M8767_BUCK9] = &buck_voltage_val3, }; -static unsigned int s5m8767_opmode_reg[][4] = { +static const unsigned int s5m8767_opmode_reg[][4] = { /* {OFF, ON, LOWPOWER, SUSPEND} */ /* LDO1 ... LDO28 */ {0x0, 0x3, 0x2, 0x1}, /* LDO1 */