summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/pcf50605.c6
-rw-r--r--firmware/target/arm/wmcodec-pp.c7
2 files changed, 3 insertions, 10 deletions
diff --git a/firmware/drivers/pcf50605.c b/firmware/drivers/pcf50605.c
index 61c52a14f5..0610f41aec 100644
--- a/firmware/drivers/pcf50605.c
+++ b/firmware/drivers/pcf50605.c
@@ -25,10 +25,8 @@
****************************************************************************/
#include "system.h"
#include "config.h"
-#if CONFIG_I2C == I2C_PP5020
-#include "i2c-pp5020.h"
-#elif CONFIG_I2C == I2C_PP5002
-#include "i2c-pp5002.h"
+#if CONFIG_I2C == I2C_PP5020 || CONFIG_I2C == I2C_PP5002
+#include "i2c-pp.h"
#endif
#include "rtc.h"
diff --git a/firmware/target/arm/wmcodec-pp.c b/firmware/target/arm/wmcodec-pp.c
index 471cd8f4a5..d3fbed433a 100644
--- a/firmware/target/arm/wmcodec-pp.c
+++ b/firmware/target/arm/wmcodec-pp.c
@@ -25,12 +25,7 @@
****************************************************************************/
#include "system.h"
-
-#if CONFIG_CPU == PP5020
-#include "i2c-pp5020.h"
-#elif CONFIG_CPU == PP5002
-#include "i2c-pp5002.h"
-#endif
+#include "i2c-pp.h"
#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)
/* The H10's audio codec uses an I2C address of 0x1b */