pmic: use generic function
authorMinkyu Kang <mk7.kang@samsung.com>
Wed, 19 Jan 2011 13:02:42 +0000 (22:02 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 19 Jan 2011 13:02:42 +0000 (22:02 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/f1_c110/f1.c
board/samsung/universal_c110/universal.c
board/samsung/universal_c210/universal.c
drivers/misc/max8998.c
include/pmic.h [moved from include/max8998.h with 64% similarity]

index 43ee29e..262e1e1 100644 (file)
@@ -45,7 +45,7 @@
 #include <spi.h>
 #include <bmp_layout.h>
 #include <ramoops.h>
-#include <max8998.h>
+#include <pmic.h>
 
 #include "animation_frames.h"
 #include "gpio_setting.h"
@@ -918,7 +918,7 @@ int misc_init_r(void)
        check_keypad();
 
        /* check max8998 */
-       max8998_init(I2C_PMIC);
+       pmic_bus_init(I2C_PMIC);
        init_pmic();
 
 #ifdef CONFIG_S5PC1XXFB
index 8d85e2c..08c4d6b 100644 (file)
@@ -45,7 +45,7 @@
 #include <spi.h>
 #include <bmp_layout.h>
 #include <ramoops.h>
-#include <max8998.h>
+#include <pmic.h>
 
 #include "animation_frames.h"
 #include "gpio_setting.h"
@@ -2571,7 +2571,7 @@ int misc_init_r(void)
        check_keypad();
 
        /* check max8998 */
-       max8998_init(I2C_PMIC);
+       pmic_bus_init(I2C_PMIC);
        init_pmic();
 
 #ifdef CONFIG_S5PC1XXFB
index a5223c2..c6c37f0 100644 (file)
@@ -35,7 +35,7 @@
 #include <asm/arch/clk.h>
 #include <ramoops.h>
 #include <info_action.h>
-#include <max8998.h>
+#include <pmic.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -1230,7 +1230,7 @@ int misc_init_r(void)
 #endif
 
 #ifdef CONFIG_CMD_PMIC
-       max8998_init(I2C_5);
+       pmic_bus_init(I2C_5);
        run_command("pmic ldo 4 off", 0);       /* adc off */
 #endif
 
index 1efc877..2dd4ad6 100644 (file)
@@ -11,7 +11,7 @@
 
 unsigned int pmic_bus;
 
-void max8998_init(int bus_num)
+void pmic_bus_init(int bus_num)
 {
        pmic_bus = bus_num;
 }
similarity index 64%
rename from include/max8998.h
rename to include/pmic.h
index c61e628..dcaaf36 100644 (file)
@@ -1,9 +1,7 @@
 /*
- * Command for max8998 / lp3974 pmic
- *
  * Copyright (C) 2011 Samsung Electrnoics
  * Minkyu Kang <mk7.kang@samsung.com>
  * Kyungmin Park <kyungmin.park@samsung.com>
  */
 
-void max8998_init(int bus_num);
+void pmic_bus_init(int bus_num);