Unverified Commit 1dceee5e authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: isl6271a: Constify isl_core_ops and isl_fixed_ops



Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a6e58299
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -65,14 +65,14 @@ static int isl6271a_set_voltage_sel(struct regulator_dev *dev,
	return err;
	return err;
}
}


static struct regulator_ops isl_core_ops = {
static const struct regulator_ops isl_core_ops = {
	.get_voltage_sel = isl6271a_get_voltage_sel,
	.get_voltage_sel = isl6271a_get_voltage_sel,
	.set_voltage_sel = isl6271a_set_voltage_sel,
	.set_voltage_sel = isl6271a_set_voltage_sel,
	.list_voltage	= regulator_list_voltage_linear,
	.list_voltage	= regulator_list_voltage_linear,
	.map_voltage	= regulator_map_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,
	.list_voltage	= regulator_list_voltage_linear,
};
};