regulator: tps6524x: Constify regulator_ops
authorAxel Lin <axel.lin@ingics.com>
Sat, 13 Apr 2019 07:30:01 +0000 (15:30 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 Apr 2019 08:44:25 +0000 (09:44 +0100)
The regulator_ops is never changed, make it const.

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

index 67cac2682f50cee7647feb8c64913b305ba603e9..c09223c34dbfb02fb9dfc81de3ed9e36939e024b 100644 (file)
@@ -565,7 +565,7 @@ static int is_supply_enabled(struct regulator_dev *rdev)
        return read_field(hw, &info->enable);
 }
 
-static struct regulator_ops regulator_ops = {
+static const struct regulator_ops regulator_ops = {
        .is_enabled             = is_supply_enabled,
        .enable                 = enable_supply,
        .disable                = disable_supply,