Skip to contentSkip to conversation

jz4740: silence warnings related to mfd_get_cell changes

PATCH In review Andres Salomon 3 participants 3 messages Mar 1, 2011 – Mar 2, 2011 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jz4740: silence warnings related to mfd_get_cell changes

mfd_get_cell returns a const, so change the jz4740 clients to store a const mfd cell. This silences type mismatch warnings.

---
 drivers/hwmon/jz4740-hwmon.c   |    2 +-
 drivers/power/jz4740-battery.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/hwmon/jz4740-hwmon.c +1 -1
index 40f106d..fea292d 100644
@@ -32,7 +32,7 @@ struct jz4740_hwmon {
 
 	int irq;
 
-	struct mfd_cell *cell;
+	const struct mfd_cell *cell;
 	struct device *hwmon;
 
 	struct completion read_completion;
drivers/power/jz4740-battery.c +1 -1
index 0938650..763f894 100644
@@ -39,7 +39,7 @@ struct jz_battery {
 	int irq;
 	int charge_irq;
 
-	struct mfd_cell *cell;
+	const struct mfd_cell *cell;
 
 	int status;
 	long voltage;
Signature · 7 lines
1.7.2.3


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Andres Salomon

mfd_get_cell returns a const, so change the jz4740 clients to store a const mfd cell. This silences type mismatch warnings.

---
 drivers/hwmon/jz4740-hwmon.c   |    2 +-
 drivers/power/jz4740-battery.c |    2 +-

For the drivers/power/ part:

Thanks!

Signature · 7 lines
Anton Vorontsov
Email: [email protected]

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Andres Salomon

Hi Andres,

Quoted 3 lines · Andres Salomon

mfd_get_cell returns a const, so change the jz4740 clients to store a const mfd cell. This silences type mismatch warnings.

Patch applied, thanks.

Cheers,
Samuel.

Signature · 7 lines
Intel Open Source Technology Centre
http://oss.intel.com/

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors