Commit 93a6d92cfa990240314c2299fb7a3a3a39811c07

Authored by Tim Harvey
Committed by Stefano Babic
1 parent 3deb22a484

power: make pfuze100 be able to coexist with other pmics

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>

Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff

drivers/power/pmic/pmic_pfuze100.c
... ... @@ -11,7 +11,7 @@
11 11 #include <power/pmic.h>
12 12 #include <power/pfuze100_pmic.h>
13 13  
14   -int pmic_init(unsigned char bus)
  14 +int power_pfuze100_init(unsigned char bus)
15 15 {
16 16 static const char name[] = "PFUZE100_PMIC";
17 17 struct pmic *p = pmic_alloc();
include/power/pfuze100_pmic.h
... ... @@ -93,5 +93,6 @@
93 93 #define SWBST_MODE_AUTO (2 << 2)
94 94 #define SWBST_MODE_APS (2 << 3)
95 95  
  96 +int power_pfuze100_init(unsigned char bus);
96 97 #endif