Commit e9300066bbd21c4fba3c8c5475c6a21d9c97694e

Authored by Andres Salomon
Committed by Samuel Ortiz
1 parent 944dc03551

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/hwmon/jz4740-hwmon.c
... ... @@ -32,7 +32,7 @@
32 32  
33 33 int irq;
34 34  
35   - struct mfd_cell *cell;
  35 + const struct mfd_cell *cell;
36 36 struct device *hwmon;
37 37  
38 38 struct completion read_completion;
drivers/power/jz4740-battery.c
... ... @@ -39,7 +39,7 @@
39 39 int irq;
40 40 int charge_irq;
41 41  
42   - struct mfd_cell *cell;
  42 + const struct mfd_cell *cell;
43 43  
44 44 int status;
45 45 long voltage;