Skip to contentSkip to conversation

mfd: mc13xxx: add I2C support fix building v3.3

PATCH NAK Alex Gershgorin 2 participants 4 messages Mar 26, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: mc13xxx: add I2C support fix building v3.3

This patch fixes the compilation errors after the patches from series mc13xxx-add-I2C-support-V4 were applied. It was successfully tested on i.MX35 PDK v3.3

---
 drivers/mfd/Kconfig        |    2 ++
 drivers/mfd/mc13xxx-core.c |    2 +-
 include/linux/regmap.h     |    2 ++
 3 files changed, 5 insertions(+), 1 deletions(-)
drivers/mfd/Kconfig +2 -0
index 9da32a2..74e00cf 100644
@@ -576,6 +576,8 @@ config MFD_MC13XXX
 	depends on SPI_MASTER || I2C
 	select MFD_CORE
 	select MFD_MC13783
+	select REGMAP_I2C if I2C
+	select REGMAP_SPI if SPI_MASTER
 	help
 	  Enable support for the Freescale MC13783 and MC13892 PMICs.
 	  This driver provides common support for accessing the device,
drivers/mfd/mc13xxx-core.c +1 -1
index 31dbf91..5a60273 100644
@@ -616,7 +616,7 @@ static int mc13xxx_add_subdevice(struct mc13xxx *mc13xxx, const char *format)
 #ifdef CONFIG_OF
 static int mc13xxx_probe_flags_dt(struct mc13xxx *mc13xxx)
 {
-	struct device_node *np = mc13xxx->dev.of_node;
+	struct device_node *np = mc13xxx->dev->of_node;
 
 	if (!np)
 		return -ENODEV;
include/linux/regmap.h +2 -0
index eb93921..8c6f5e9 100644
@@ -45,6 +45,7 @@ struct reg_default {
  *
  * @reg_bits: Number of bits in a register address, mandatory.
  * @val_bits: Number of bits in a register value, mandatory.
+ * @pad_bits: Number of bits in a register pad, mandatory.
  *
  * @writeable_reg: Optional callback returning true if the register
  *                 can be written to.
@@ -75,6 +76,7 @@ struct reg_default {
 struct regmap_config {
 	int reg_bits;
 	int val_bits;
+	int pad_bits;
 
 	bool (*writeable_reg)(struct device *dev, unsigned int reg);
 	bool (*readable_reg)(struct device *dev, unsigned int reg);
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 3 lines · Alex Gershgorin

This patch fixes the compilation errors after the patches from series mc13xxx-add-I2C-support-V4 were applied. It was successfully tested on i.MX35 PDK v3.3

Nack, please submit any required changes properly.

#2 lore raw
Quoted 3 lines
Quoted 3 lines

Subject: Re: [PATCH] mfd: mc13xxx: add I2C support fix building v3.3

Quoted 5 lines · Alex Gershgorin

This patch fixes the compilation errors after the patches from series mc13xxx-add-I2C-support-V4 were applied. It was successfully tested on i.MX35 PDK v3.3

Quoted 1 line

Nack, please submit any required changes properly.

Do you mean, that this patch should be divided into two patches ?

Thanks
Alex Gershgorin

#3 lore raw
Quoted 9 lines · Alex Gershgorin
Quoted 5 lines · Alex Gershgorin

This patch fixes the compilation errors after the patches from series mc13xxx-add-I2C-support-V4 were applied. It was successfully tested on i.MX35 PDK v3.3

Quoted 1 line

Nack, please submit any required changes properly.

Do you mean, that this patch should be divided into two patches ?

I mean you should send the patch to the appropraite maintainers with a sane changelog.