regulator: s5m8767: Constify s5m8767_opmode_reg
authorAxel Lin <axel.lin@ingics.com>
Thu, 21 Feb 2019 13:17:21 +0000 (21:17 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 21 Feb 2019 18:53:53 +0000 (18:53 +0000)
The s5m8767_opmode_reg should never change, make it const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s5m8767.c

index b581f01f3395762eec02ff5d0a70efda4ecdfe48..5b0e1fe6723fcf7c5327bd08058177251dee4509 100644 (file)
@@ -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 */