Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a5d0315 authored by Shawn Guo's avatar Shawn Guo Committed by Mark Brown
Browse files

regulator: mc13892: remove the unnecessary prefix from regulator name



It's not really necessary to add a prefix 'MC13892__' for each mc13892
regulator name, since the chip must have been identified as mc13892
when we look at the regulator name.

Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent fded2f4f
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -48,7 +48,7 @@ extern struct regulator_ops mc13xxx_fixed_regulator_ops;
#define MC13xxx_DEFINE(prefix, _name, _reg, _vsel_reg, _voltages, _ops)	\
#define MC13xxx_DEFINE(prefix, _name, _reg, _vsel_reg, _voltages, _ops)	\
	[prefix ## _name] = {				\
	[prefix ## _name] = {				\
		.desc = {						\
		.desc = {						\
			.name = #prefix "_" #_name,			\
			.name = #_name,					\
			.n_voltages = ARRAY_SIZE(_voltages),		\
			.n_voltages = ARRAY_SIZE(_voltages),		\
			.ops = &_ops,			\
			.ops = &_ops,			\
			.type = REGULATOR_VOLTAGE,			\
			.type = REGULATOR_VOLTAGE,			\
@@ -66,7 +66,7 @@ extern struct regulator_ops mc13xxx_fixed_regulator_ops;
#define MC13xxx_FIXED_DEFINE(prefix, _name, _reg, _voltages, _ops)	\
#define MC13xxx_FIXED_DEFINE(prefix, _name, _reg, _voltages, _ops)	\
	[prefix ## _name] = {				\
	[prefix ## _name] = {				\
		.desc = {						\
		.desc = {						\
			.name = #prefix "_" #_name,			\
			.name = #_name,					\
			.n_voltages = ARRAY_SIZE(_voltages),		\
			.n_voltages = ARRAY_SIZE(_voltages),		\
			.ops = &_ops,		\
			.ops = &_ops,		\
			.type = REGULATOR_VOLTAGE,			\
			.type = REGULATOR_VOLTAGE,			\
@@ -81,7 +81,7 @@ extern struct regulator_ops mc13xxx_fixed_regulator_ops;
#define MC13xxx_GPO_DEFINE(prefix, _name, _reg,  _voltages, _ops)	\
#define MC13xxx_GPO_DEFINE(prefix, _name, _reg,  _voltages, _ops)	\
	[prefix ## _name] = {				\
	[prefix ## _name] = {				\
		.desc = {						\
		.desc = {						\
			.name = #prefix "_" #_name,			\
			.name = #_name,					\
			.n_voltages = ARRAY_SIZE(_voltages),		\
			.n_voltages = ARRAY_SIZE(_voltages),		\
			.ops = &_ops,		\
			.ops = &_ops,		\
			.type = REGULATOR_VOLTAGE,			\
			.type = REGULATOR_VOLTAGE,			\