]> git.sur5r.net Git - u-boot/commitdiff
power: make pfuze100 be able to coexist with other pmics
authorTim Harvey <tharvey@gateworks.com>
Wed, 23 Apr 2014 04:53:56 +0000 (21:53 -0700)
committerStefano Babic <sbabic@denx.de>
Fri, 9 May 2014 12:38:23 +0000 (14:38 +0200)
Avoid uding pmic_init() as this forces the model of only allowing a
single PMIC driver to be built at a time.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
drivers/power/pmic/pmic_pfuze100.c
include/power/pfuze100_pmic.h

index 22c1f15eeb4008acc93546efaff26815d050136a..21f12d2564ee00e1eb11885d3167e995a03e233b 100644 (file)
@@ -11,7 +11,7 @@
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
 
-int pmic_init(unsigned char bus)
+int power_pfuze100_init(unsigned char bus)
 {
        static const char name[] = "PFUZE100_PMIC";
        struct pmic *p = pmic_alloc();
index 2a9032a1f93a486ddfc3b511e15fe9d07f0c5767..444aba6c66159bf3ebdee307ec2565ceb1b7c413 100644 (file)
@@ -93,4 +93,5 @@ enum {
 #define SWBST_MODE_AUTO        (2 << 2)
 #define SWBST_MODE_APS (2 << 3)
 
+int power_pfuze100_init(unsigned char bus);
 #endif