regulator: isl6271a: Constify isl_core_ops and isl_fixed_ops
authorAxel Lin <axel.lin@ingics.com>
Mon, 28 Jan 2019 14:19:21 +0000 (22:19 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Jan 2019 15:30:58 +0000 (15:30 +0000)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/isl6271a-regulator.c

index ae29c87730578e0f8b773334748223eb94f96f46..6f28bba81d13cc44e0a96ae687b5693fd6e6cdc8 100644 (file)
@@ -65,14 +65,14 @@ static int isl6271a_set_voltage_sel(struct regulator_dev *dev,
        return err;
 }
 
-static struct regulator_ops isl_core_ops = {
+static const struct regulator_ops isl_core_ops = {
        .get_voltage_sel = isl6271a_get_voltage_sel,
        .set_voltage_sel = isl6271a_set_voltage_sel,
        .list_voltage   = regulator_list_voltage_linear,
        .map_voltage    = regulator_map_voltage_linear,
 };
 
-static struct regulator_ops isl_fixed_ops = {
+static const struct regulator_ops isl_fixed_ops = {
        .list_voltage   = regulator_list_voltage_linear,
 };