mfd: Move to the new db500 PRCMU API
Now that we have a shared API between the DB8500 and DB5500
PRCMU's, switch to using this neutral API instead. We delete the
parts of db8500-prcmu.h that is now PRCMU-neutral, and calls will
be diverted to respective driver. Common registers are in
dbx500-prcmu-regs.h and common accessors and defines in
<linux/mfd/dbx500-prcmu.h> This way we get a a lot more
abstraction and code reuse.
Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
diff --git a/include/linux/mfd/dbx500-prcmu.h b/include/linux/mfd/dbx500-prcmu.h
index 6c7584d..bac942f 100644
--- a/include/linux/mfd/dbx500-prcmu.h
+++ b/include/linux/mfd/dbx500-prcmu.h
@@ -240,7 +240,7 @@
static inline int prcmu_set_epod(u16 epod_id, u8 epod_state)
{
if (machine_is_u5500())
- return db5500_prcmu_set_epod(epod_id, epod_state);
+ return -EINVAL;
else
return db8500_prcmu_set_epod(epod_id, epod_state);
}
@@ -295,7 +295,7 @@
static inline int prcmu_set_arm_opp(u8 opp)
{
if (machine_is_u5500())
- return db5500_prcmu_set_arm_opp(opp);
+ return -EINVAL;
else
return db8500_prcmu_set_arm_opp(opp);
}
@@ -303,7 +303,7 @@
static inline int prcmu_get_arm_opp(void)
{
if (machine_is_u5500())
- return db5500_prcmu_get_arm_opp();
+ return -EINVAL;
else
return db8500_prcmu_get_arm_opp();
}
@@ -362,7 +362,7 @@
static inline int prcmu_config_esram0_deep_sleep(u8 state)
{
if (machine_is_u5500())
- return db5500_prcmu_config_esram0_deep_sleep(state);
+ return -EINVAL;
else
return db8500_prcmu_config_esram0_deep_sleep(state);
}