]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
regulator: da9063: move definitions out of a header into the driver
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 20 May 2019 09:34:45 +0000 (11:34 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 20 May 2019 14:25:57 +0000 (15:25 +0100)
Those definitions are only used within the driver meanwhile, so put them
there.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Tested-by: Steve Twiss <stwiss.opensource@diasemi.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9063-regulator.c
include/linux/mfd/da9063/pdata.h

index 43aa0df30346487691f6720e7bdf1727f22a6947..da95197fdb4f623510f3bd8ee6bab23a623236fe 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/regulator/machine.h>
 #include <linux/regulator/of_regulator.h>
 #include <linux/mfd/da9063/core.h>
-#include <linux/mfd/da9063/pdata.h>
 #include <linux/mfd/da9063/registers.h>
 
 
        REG_FIELD(_reg, __builtin_ffs((int)_mask) - 1, \
                sizeof(unsigned int) * 8 - __builtin_clz((_mask)) - 1)
 
+/* DA9063 and DA9063L regulator IDs */
+enum {
+       /* BUCKs */
+       DA9063_ID_BCORE1,
+       DA9063_ID_BCORE2,
+       DA9063_ID_BPRO,
+       DA9063_ID_BMEM,
+       DA9063_ID_BIO,
+       DA9063_ID_BPERI,
+
+       /* BCORE1 and BCORE2 in merged mode */
+       DA9063_ID_BCORES_MERGED,
+       /* BMEM and BIO in merged mode */
+       DA9063_ID_BMEM_BIO_MERGED,
+       /* When two BUCKs are merged, they cannot be reused separately */
+
+       /* LDOs on both DA9063 and DA9063L */
+       DA9063_ID_LDO3,
+       DA9063_ID_LDO7,
+       DA9063_ID_LDO8,
+       DA9063_ID_LDO9,
+       DA9063_ID_LDO11,
+
+       /* DA9063-only LDOs */
+       DA9063_ID_LDO1,
+       DA9063_ID_LDO2,
+       DA9063_ID_LDO4,
+       DA9063_ID_LDO5,
+       DA9063_ID_LDO6,
+       DA9063_ID_LDO10,
+};
+
+/* Old regulator platform data */
+struct da9063_regulator_data {
+       int                             id;
+       struct regulator_init_data      *initdata;
+};
+
+struct da9063_regulators_pdata {
+       unsigned                        n_regulators;
+       struct da9063_regulator_data    *regulator_data;
+};
+
 /* Regulator capabilities and registers description */
 struct da9063_regulator_info {
        struct regulator_desc desc;
index 50bed4f89c1a3ce86e3c9e7d606a09426badeed5..21a2d107f0cf7555b8182f93ba0c09b4b5981601 100644 (file)
 #ifndef __MFD_DA9063_PDATA_H__
 #define __MFD_DA9063_PDATA_H__
 
-#include <linux/regulator/machine.h>
-
-/*
- * Regulator configuration
- */
-/* DA9063 and DA9063L regulator IDs */
-enum {
-       /* BUCKs */
-       DA9063_ID_BCORE1,
-       DA9063_ID_BCORE2,
-       DA9063_ID_BPRO,
-       DA9063_ID_BMEM,
-       DA9063_ID_BIO,
-       DA9063_ID_BPERI,
-
-       /* BCORE1 and BCORE2 in merged mode */
-       DA9063_ID_BCORES_MERGED,
-       /* BMEM and BIO in merged mode */
-       DA9063_ID_BMEM_BIO_MERGED,
-       /* When two BUCKs are merged, they cannot be reused separately */
-
-       /* LDOs on both DA9063 and DA9063L */
-       DA9063_ID_LDO3,
-       DA9063_ID_LDO7,
-       DA9063_ID_LDO8,
-       DA9063_ID_LDO9,
-       DA9063_ID_LDO11,
-
-       /* DA9063-only LDOs */
-       DA9063_ID_LDO1,
-       DA9063_ID_LDO2,
-       DA9063_ID_LDO4,
-       DA9063_ID_LDO5,
-       DA9063_ID_LDO6,
-       DA9063_ID_LDO10,
-};
-
-/* Regulators platform data */
-struct da9063_regulator_data {
-       int                             id;
-       struct regulator_init_data      *initdata;
-};
-
-struct da9063_regulators_pdata {
-       unsigned                        n_regulators;
-       struct da9063_regulator_data    *regulator_data;
-};
-
-
 /*
  * RGB LED configuration
  */