* [lm-sensors] [PATCH] jz4740: silence warnings related to
@ 2011-03-01 21:35 ` Andres Salomon
0 siblings, 0 replies; 6+ messages in thread
From: Andres Salomon @ 2011-03-01 21:35 UTC (permalink / raw)
To: Samuel Ortiz
Cc: Jean Delvare, Guenter Roeck, Anton Vorontsov, lm-sensors,
linux-kernel
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>
---
drivers/hwmon/jz4740-hwmon.c | 2 +-
drivers/power/jz4740-battery.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hwmon/jz4740-hwmon.c b/drivers/hwmon/jz4740-hwmon.c
index 40f106d..fea292d 100644
--- a/drivers/hwmon/jz4740-hwmon.c
+++ b/drivers/hwmon/jz4740-hwmon.c
@@ -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;
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c
index 0938650..763f894 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;
--
1.7.2.3
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] jz4740: silence warnings related to mfd_get_cell changes
@ 2011-03-01 21:35 ` Andres Salomon
0 siblings, 0 replies; 6+ messages in thread
From: Andres Salomon @ 2011-03-01 21:35 UTC (permalink / raw)
To: Samuel Ortiz
Cc: Jean Delvare, Guenter Roeck, Anton Vorontsov, lm-sensors,
linux-kernel
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>
---
drivers/hwmon/jz4740-hwmon.c | 2 +-
drivers/power/jz4740-battery.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hwmon/jz4740-hwmon.c b/drivers/hwmon/jz4740-hwmon.c
index 40f106d..fea292d 100644
--- a/drivers/hwmon/jz4740-hwmon.c
+++ b/drivers/hwmon/jz4740-hwmon.c
@@ -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;
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c
index 0938650..763f894 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;
--
1.7.2.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [lm-sensors] [PATCH] jz4740: silence warnings related to
2011-03-01 21:35 ` [PATCH] jz4740: silence warnings related to mfd_get_cell changes Andres Salomon
@ 2011-03-01 22:58 ` Anton Vorontsov
-1 siblings, 0 replies; 6+ messages in thread
From: Anton Vorontsov @ 2011-03-01 22:58 UTC (permalink / raw)
To: Andres Salomon
Cc: Samuel Ortiz, Jean Delvare, Guenter Roeck, lm-sensors,
linux-kernel
On Tue, Mar 01, 2011 at 01:35:48PM -0800, Andres Salomon wrote:
>
> 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>
> ---
> drivers/hwmon/jz4740-hwmon.c | 2 +-
> drivers/power/jz4740-battery.c | 2 +-
For the drivers/power/ part:
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Thanks!
--
Anton Vorontsov
Email: cbouatmailru@gmail.com
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] jz4740: silence warnings related to mfd_get_cell changes
@ 2011-03-01 22:58 ` Anton Vorontsov
0 siblings, 0 replies; 6+ messages in thread
From: Anton Vorontsov @ 2011-03-01 22:58 UTC (permalink / raw)
To: Andres Salomon
Cc: Samuel Ortiz, Jean Delvare, Guenter Roeck, lm-sensors,
linux-kernel
On Tue, Mar 01, 2011 at 01:35:48PM -0800, Andres Salomon wrote:
>
> 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>
> ---
> drivers/hwmon/jz4740-hwmon.c | 2 +-
> drivers/power/jz4740-battery.c | 2 +-
For the drivers/power/ part:
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Thanks!
--
Anton Vorontsov
Email: cbouatmailru@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [lm-sensors] [PATCH] jz4740: silence warnings related to
2011-03-01 21:35 ` [PATCH] jz4740: silence warnings related to mfd_get_cell changes Andres Salomon
@ 2011-03-02 10:33 ` Samuel Ortiz
-1 siblings, 0 replies; 6+ messages in thread
From: Samuel Ortiz @ 2011-03-02 10:33 UTC (permalink / raw)
To: Andres Salomon
Cc: Jean Delvare, Guenter Roeck, Anton Vorontsov, lm-sensors,
linux-kernel
Hi Andres,
On Tue, Mar 01, 2011 at 01:35:48PM -0800, Andres Salomon wrote:
>
> 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.
--
Intel Open Source Technology Centre
http://oss.intel.com/
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] jz4740: silence warnings related to mfd_get_cell changes
@ 2011-03-02 10:33 ` Samuel Ortiz
0 siblings, 0 replies; 6+ messages in thread
From: Samuel Ortiz @ 2011-03-02 10:33 UTC (permalink / raw)
To: Andres Salomon
Cc: Jean Delvare, Guenter Roeck, Anton Vorontsov, lm-sensors,
linux-kernel
Hi Andres,
On Tue, Mar 01, 2011 at 01:35:48PM -0800, Andres Salomon wrote:
>
> 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.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-03-02 10:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 21:35 [lm-sensors] [PATCH] jz4740: silence warnings related to Andres Salomon
2011-03-01 21:35 ` [PATCH] jz4740: silence warnings related to mfd_get_cell changes Andres Salomon
2011-03-01 22:58 ` [lm-sensors] [PATCH] jz4740: silence warnings related to Anton Vorontsov
2011-03-01 22:58 ` [PATCH] jz4740: silence warnings related to mfd_get_cell changes Anton Vorontsov
2011-03-02 10:33 ` [lm-sensors] [PATCH] jz4740: silence warnings related to Samuel Ortiz
2011-03-02 10:33 ` [PATCH] jz4740: silence warnings related to mfd_get_cell changes Samuel Ortiz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.