Skip to content

Commit

Permalink
jz4740: silence warnings related to mfd_get_cell changes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Anton Vorontsov <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
dilinger authored and Samuel Ortiz committed Mar 23, 2011
1 parent 944dc03 commit e930006
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/hwmon/jz4740-hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/power/jz4740-battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e930006

Please sign in to comment.