Commit 9f057dc1 authored by Keerthy's avatar Keerthy Committed by Mark Brown

regulator: palmas: Shift the reg_info structure definition to the header file

Shift the reg_info structure definition to the header file.
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 1c113d83
...@@ -27,15 +27,6 @@ ...@@ -27,15 +27,6 @@
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/regulator/of_regulator.h> #include <linux/regulator/of_regulator.h>
struct regs_info {
char *name;
char *sname;
u8 vsel_addr;
u8 ctrl_addr;
u8 tstep_addr;
int sleep_id;
};
static const struct regulator_linear_range smps_low_ranges[] = { static const struct regulator_linear_range smps_low_ranges[] = {
REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0), REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0),
REGULATOR_LINEAR_RANGE(500000, 0x1, 0x6, 0), REGULATOR_LINEAR_RANGE(500000, 0x1, 0x6, 0),
......
...@@ -88,6 +88,15 @@ struct palmas { ...@@ -88,6 +88,15 @@ struct palmas {
u8 pwm_muxed; u8 pwm_muxed;
}; };
struct regs_info {
char *name;
char *sname;
u8 vsel_addr;
u8 ctrl_addr;
u8 tstep_addr;
int sleep_id;
};
struct palmas_gpadc_platform_data { struct palmas_gpadc_platform_data {
/* Channel 3 current source is only enabled during conversion */ /* Channel 3 current source is only enabled during conversion */
int ch3_current; int ch3_current;
......
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