]> git.karo-electronics.de Git - linux-beck.git/commitdiff
regulator: palmas: Shift the reg_info structure definition to the header file
authorKeerthy <j-keerthy@ti.com>
Wed, 18 Jun 2014 09:58:56 +0000 (15:28 +0530)
committerMark Brown <broonie@linaro.org>
Mon, 23 Jun 2014 11:30:56 +0000 (12:30 +0100)
Shift the reg_info structure definition to the header file.

Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/palmas-regulator.c
include/linux/mfd/palmas.h

index b982f0ff4e01585114530a2514b0e7203b307b40..1cf462f90df52c7b1b7d8cac223c7b83a0fd4c1a 100644 (file)
 #include <linux/of_platform.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[] = {
        REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0),
        REGULATOR_LINEAR_RANGE(500000, 0x1, 0x6, 0),
index f760a07ab76e22dd8126dd88a7b623c9f4ec3e67..c123666c70f7eb2ea04f55e0b4ae85b495fa5136 100644 (file)
@@ -88,6 +88,15 @@ struct palmas {
        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 {
        /* Channel 3 current source is only enabled during conversion */
        int ch3_current;