]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: Tidy up inclusion of regulator_common.h
authorSimon Glass <sjg@chromium.org>
Sun, 19 Jul 2020 16:15:44 +0000 (10:15 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 4 Aug 2020 02:19:54 +0000 (22:19 -0400)
This file should not include common.h and dm.h so remove them. Also move
the inclusion of this file to after the normal includes.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/power/regulator/fixed.c
drivers/power/regulator/gpio-regulator.c
drivers/power/regulator/regulator_common.c
drivers/power/regulator/regulator_common.h

index b5f7aec3530c0fc79ceea2a6d59ba94198c050a8..2fa6c7e6b290fabff05cd0b234adc0e3ade00e63 100644 (file)
@@ -5,7 +5,6 @@
  *  Przemyslaw Marczak <p.marczak@samsung.com>
  */
 
-#include "regulator_common.h"
 #include <common.h>
 #include <errno.h>
 #include <dm.h>
@@ -13,6 +12,8 @@
 #include <power/pmic.h>
 #include <power/regulator.h>
 
+#include "regulator_common.h"
+
 static int fixed_regulator_ofdata_to_platdata(struct udevice *dev)
 {
        struct dm_regulator_uclass_platdata *uc_pdata;
index cf3fbae79de83993ae4ecc81e9365d8d3bbc4c28..947f812d099fe4eb31a4a04dab4c6f2c496d2aaa 100644 (file)
@@ -4,7 +4,6 @@
  * Keerthy <j-keerthy@ti.com>
  */
 
-#include "regulator_common.h"
 #include <common.h>
 #include <fdtdec.h>
 #include <errno.h>
@@ -15,6 +14,8 @@
 #include <power/pmic.h>
 #include <power/regulator.h>
 
+#include "regulator_common.h"
+
 #define GPIO_REGULATOR_MAX_STATES      2
 
 DECLARE_GLOBAL_DATA_PTR;
index 4cfcc31298eadb03aaa41173b159e131c9ce391f..13906b9c6e2d6946ba55bad023981d455e1d3d90 100644 (file)
@@ -4,12 +4,14 @@
  * Sven Schwermer <sven.svenschwermer@disruptive-technologies.com>
  */
 
-#include "regulator_common.h"
 #include <common.h>
+#include <dm.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <power/regulator.h>
 
+#include "regulator_common.h"
+
 int regulator_common_ofdata_to_platdata(struct udevice *dev,
        struct regulator_common_platdata *dev_pdata, const char *enable_gpio_name)
 {
index 18a525880a36e2efa1b4d94f25401b2d4a4962f0..bf80439c78692e154ef857612259e110277d3269 100644 (file)
@@ -7,9 +7,7 @@
 #ifndef _REGULATOR_COMMON_H
 #define _REGULATOR_COMMON_H
 
-#include <common.h>
 #include <asm/gpio.h>
-#include <dm.h>
 
 struct regulator_common_platdata {
        struct gpio_desc gpio; /* GPIO for regulator enable control */