diff options
author | Andres Salomon <dilinger@queued.net> | 2011-03-01 13:35:48 -0800 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-03-25 17:58:55 -0400 |
commit | 3a2f13be163fe740a2bd83cd4f6178a8541e8b4c (patch) | |
tree | 276f1eea3ac3f17b842fd97323f312a3333767ca /drivers/power | |
parent | f757e02a574d3bd2d84ab886856b7c971f4aff90 (diff) |
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>
(cherry picked from commit e9300066bbd21c4fba3c8c5475c6a21d9c97694e)
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/jz4740-battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c index 0938650a466..763f894ed18 100644 --- a/drivers/power/jz4740-battery.c +++ b/drivers/power/jz4740-battery.c @@ -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; |