Skip to contentSkip to conversation

mfd: Convert pcf50633 to use new register map API

PATCH In review Mark Brown 3 participants 3 messages Aug 8, 2011 – Aug 22, 2011 Multifunction devices (MFD)

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 mfd: Convert pcf50633 to use new register map API

---
 drivers/mfd/Kconfig               |    1 +
 drivers/mfd/pcf50633-core.c       |  114 +++++++++++-------------------------
 include/linux/mfd/pcf50633/core.h |    3 +-
 3 files changed, 38 insertions(+), 80 deletions(-)
drivers/mfd/Kconfig +1 -0
index 21574bd..13f0040 100644
@@ -500,6 +500,7 @@ config MFD_WM8994
 config MFD_PCF50633
 	tristate "Support for NXP PCF50633"
 	depends on I2C
+	select REGMAP_I2C
 	help
 	  Say yes here if you have NXP PCF50633 chip on your board.
 	  This core driver provides register access and IRQ handling
drivers/mfd/pcf50633-core.c +35 -79

191 lines not on this page · raw message

include/linux/mfd/pcf50633/core.h +2 -1
index 50d4a04..a808407 100644
@@ -21,6 +21,7 @@
 #include <linux/mfd/pcf50633/backlight.h>
 
 struct pcf50633;
+struct regmap;
 
 #define PCF50633_NUM_REGULATORS	11
 
@@ -134,7 +135,7 @@ enum {
 
 struct pcf50633 {
 	struct device *dev;
-	struct i2c_client *i2c_client;
+	struct regmap *regmap;
 
 	struct pcf50633_platform_data *pdata;
 	int irq;
Signature · 1 line
1.7.5.4