Commit 4d45c70b authored by Vaibhav Hiremath's avatar Vaibhav Hiremath Committed by Mark Brown

regulator: 88pm800: Fix indentation of assignments of data structures

This patch makes code more clean from readability point of view,
make all assignments of LDO, BUCk and regulator_ops structure
at the same indentation.
Signed-off-by: default avatarVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d770e558
...@@ -95,11 +95,11 @@ struct pm800_regulators { ...@@ -95,11 +95,11 @@ struct pm800_regulators {
#define PM800_BUCK(vreg, ereg, ebit, amax, volt_ranges, n_volt) \ #define PM800_BUCK(vreg, ereg, ebit, amax, volt_ranges, n_volt) \
{ \ { \
.desc = { \ .desc = { \
.name = #vreg, \ .name = #vreg, \
.ops = &pm800_volt_range_ops, \ .ops = &pm800_volt_range_ops, \
.type = REGULATOR_VOLTAGE, \ .type = REGULATOR_VOLTAGE, \
.id = PM800_ID_##vreg, \ .id = PM800_ID_##vreg, \
.owner = THIS_MODULE, \ .owner = THIS_MODULE, \
.n_voltages = n_volt, \ .n_voltages = n_volt, \
.linear_ranges = volt_ranges, \ .linear_ranges = volt_ranges, \
.n_linear_ranges = ARRAY_SIZE(volt_ranges), \ .n_linear_ranges = ARRAY_SIZE(volt_ranges), \
...@@ -108,7 +108,7 @@ struct pm800_regulators { ...@@ -108,7 +108,7 @@ struct pm800_regulators {
.enable_reg = PM800_##ereg, \ .enable_reg = PM800_##ereg, \
.enable_mask = 1 << (ebit), \ .enable_mask = 1 << (ebit), \
}, \ }, \
.max_ua = (amax), \ .max_ua = (amax), \
} }
/* /*
...@@ -123,19 +123,19 @@ struct pm800_regulators { ...@@ -123,19 +123,19 @@ struct pm800_regulators {
#define PM800_LDO(vreg, ereg, ebit, amax, ldo_volt_table) \ #define PM800_LDO(vreg, ereg, ebit, amax, ldo_volt_table) \
{ \ { \
.desc = { \ .desc = { \
.name = #vreg, \ .name = #vreg, \
.ops = &pm800_volt_table_ops, \ .ops = &pm800_volt_table_ops, \
.type = REGULATOR_VOLTAGE, \ .type = REGULATOR_VOLTAGE, \
.id = PM800_ID_##vreg, \ .id = PM800_ID_##vreg, \
.owner = THIS_MODULE, \ .owner = THIS_MODULE, \
.n_voltages = ARRAY_SIZE(ldo_volt_table), \ .n_voltages = ARRAY_SIZE(ldo_volt_table), \
.vsel_reg = PM800_##vreg##_VOUT, \ .vsel_reg = PM800_##vreg##_VOUT, \
.vsel_mask = 0x1f, \ .vsel_mask = 0x1f, \
.enable_reg = PM800_##ereg, \ .enable_reg = PM800_##ereg, \
.enable_mask = 1 << (ebit), \ .enable_mask = 1 << (ebit), \
.volt_table = ldo_volt_table, \ .volt_table = ldo_volt_table, \
}, \ }, \
.max_ua = (amax), \ .max_ua = (amax), \
} }
/* Ranges are sorted in ascending order. */ /* Ranges are sorted in ascending order. */
...@@ -178,25 +178,25 @@ static int pm800_get_current_limit(struct regulator_dev *rdev) ...@@ -178,25 +178,25 @@ static int pm800_get_current_limit(struct regulator_dev *rdev)
} }
static struct regulator_ops pm800_volt_range_ops = { static struct regulator_ops pm800_volt_range_ops = {
.list_voltage = regulator_list_voltage_linear_range, .list_voltage = regulator_list_voltage_linear_range,
.map_voltage = regulator_map_voltage_linear_range, .map_voltage = regulator_map_voltage_linear_range,
.set_voltage_sel = regulator_set_voltage_sel_regmap, .set_voltage_sel = regulator_set_voltage_sel_regmap,
.get_voltage_sel = regulator_get_voltage_sel_regmap, .get_voltage_sel = regulator_get_voltage_sel_regmap,
.enable = regulator_enable_regmap, .enable = regulator_enable_regmap,
.disable = regulator_disable_regmap, .disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap, .is_enabled = regulator_is_enabled_regmap,
.get_current_limit = pm800_get_current_limit, .get_current_limit = pm800_get_current_limit,
}; };
static struct regulator_ops pm800_volt_table_ops = { static struct regulator_ops pm800_volt_table_ops = {
.list_voltage = regulator_list_voltage_table, .list_voltage = regulator_list_voltage_table,
.map_voltage = regulator_map_voltage_iterate, .map_voltage = regulator_map_voltage_iterate,
.set_voltage_sel = regulator_set_voltage_sel_regmap, .set_voltage_sel = regulator_set_voltage_sel_regmap,
.get_voltage_sel = regulator_get_voltage_sel_regmap, .get_voltage_sel = regulator_get_voltage_sel_regmap,
.enable = regulator_enable_regmap, .enable = regulator_enable_regmap,
.disable = regulator_disable_regmap, .disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap, .is_enabled = regulator_is_enabled_regmap,
.get_current_limit = pm800_get_current_limit, .get_current_limit = pm800_get_current_limit,
}; };
/* The array is indexed by id(PM800_ID_XXX) */ /* The array is indexed by id(PM800_ID_XXX) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment