[U-Boot] [PATCH v3 41/72] samsung: Move pmic header out of config file

Simon Glass sjg at chromium.org
Fri May 19 02:09:31 UTC 2017


We should not be including a PMIC header file in the board config. Move it
to a C file.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v3:
- Add new patch to move pmic header out of config file

Changes in v2: None

 board/samsung/common/misc.c | 1 +
 include/configs/trats2.h    | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index dc4dead20b..3a8e807736 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -18,6 +18,7 @@
 #include <asm/gpio.h>
 #include <linux/input.h>
 #include <dm.h>
+#include <power/max77686_pmic.h>
 #include <power/pmic.h>
 #include <mmc.h>
 
diff --git a/include/configs/trats2.h b/include/configs/trats2.h
index 6a4604ce93..927d48255c 100644
--- a/include/configs/trats2.h
+++ b/include/configs/trats2.h
@@ -169,7 +169,6 @@
 
 /* Download menu - definitions for check keys */
 #ifndef __ASSEMBLY__
-#include <power/max77686_pmic.h>
 
 #define KEY_PWR_PMIC_NAME		"MAX77686_PMIC"
 #define KEY_PWR_STATUS_REG		MAX77686_REG_PMIC_STATUS1
-- 
2.13.0.303.g4ebf302169-goog



More information about the U-Boot mailing list