Эх сурвалжийг харах

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.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Andres Salomon 14 жил өмнө
parent
commit
e9300066bb

+ 1 - 1
drivers/hwmon/jz4740-hwmon.c

@@ -32,7 +32,7 @@ struct jz4740_hwmon {
 
 
 	int irq;
 	int irq;
 
 
-	struct mfd_cell *cell;
+	const struct mfd_cell *cell;
 	struct device *hwmon;
 	struct device *hwmon;
 
 
 	struct completion read_completion;
 	struct completion read_completion;

+ 1 - 1
drivers/power/jz4740-battery.c

@@ -39,7 +39,7 @@ struct jz_battery {
 	int irq;
 	int irq;
 	int charge_irq;
 	int charge_irq;
 
 
-	struct mfd_cell *cell;
+	const struct mfd_cell *cell;
 
 
 	int status;
 	int status;
 	long voltage;
 	long voltage;