OSDN Git Service

regulator: cpcap: Constify omap4_regulators and xoom_regulators
authorAxel Lin <axel.lin@ingics.com>
Tue, 26 Feb 2019 05:52:30 +0000 (13:52 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 26 Feb 2019 16:32:06 +0000 (16:32 +0000)
They should never change, make them const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/cpcap-regulator.c

index c15ced1..e7dab5c 100644 (file)
@@ -334,7 +334,7 @@ static const unsigned int vaudio_val_tbl[] = { 0, 2775000, };
  * SW1 to SW4 and SW6 seems to be unused for mapphone. Note that VSIM and
  * VSIMCARD have a shared resource assignment bit.
  */
-static struct cpcap_regulator omap4_regulators[] = {
+static const struct cpcap_regulator omap4_regulators[] = {
        CPCAP_REG(SW1, CPCAP_REG_S1C1, CPCAP_REG_ASSIGN2,
                  CPCAP_BIT_SW1_SEL, unknown_val_tbl,
                  0, 0, 0, 0, 0),
@@ -410,7 +410,7 @@ static struct cpcap_regulator omap4_regulators[] = {
        { /* sentinel */ },
 };
 
-static struct cpcap_regulator xoom_regulators[] = {
+static const struct cpcap_regulator xoom_regulators[] = {
        CPCAP_REG(SW1, CPCAP_REG_S1C1, CPCAP_REG_ASSIGN2,
                  CPCAP_BIT_SW1_SEL, unknown_val_tbl,
                  0, 0, 0, 0, 0),