aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-11-12 14:07:14 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-12-05 00:06:22 -0500
commit8bb61fe1d03123a625265d599a22fb12af79e1ae (patch)
treecd15de2ed622344b0f299bec115c51cc8beb1136 /drivers/macintosh
parentb63a0ffe35de7e5f9b907bbc2c783e702f7e15af (diff)
powerpc/windfarm: Remove superfluous name casts
wf_sensor.name is "const char *" Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/windfarm_lm75_sensor.c2
-rw-r--r--drivers/macintosh/windfarm_max6690_sensor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/windfarm_lm75_sensor.c b/drivers/macintosh/windfarm_lm75_sensor.c
index 9ef32b3df91f..590214ba736c 100644
--- a/drivers/macintosh/windfarm_lm75_sensor.c
+++ b/drivers/macintosh/windfarm_lm75_sensor.c
@@ -133,7 +133,7 @@ static int wf_lm75_probe(struct i2c_client *client,
133 lm->inited = 0; 133 lm->inited = 0;
134 lm->ds1775 = ds1775; 134 lm->ds1775 = ds1775;
135 lm->i2c = client; 135 lm->i2c = client;
136 lm->sens.name = (char *)name; /* XXX fix constness in structure */ 136 lm->sens.name = name;
137 lm->sens.ops = &wf_lm75_ops; 137 lm->sens.ops = &wf_lm75_ops;
138 i2c_set_clientdata(client, lm); 138 i2c_set_clientdata(client, lm);
139 139
diff --git a/drivers/macintosh/windfarm_max6690_sensor.c b/drivers/macintosh/windfarm_max6690_sensor.c
index 945a25b2f31e..87e439b10318 100644
--- a/drivers/macintosh/windfarm_max6690_sensor.c
+++ b/drivers/macintosh/windfarm_max6690_sensor.c
@@ -95,7 +95,7 @@ static int wf_max6690_probe(struct i2c_client *client,
95 } 95 }
96 96
97 max->i2c = client; 97 max->i2c = client;
98 max->sens.name = (char *)name; /* XXX fix constness in structure */ 98 max->sens.name = name;
99 max->sens.ops = &wf_max6690_ops; 99 max->sens.ops = &wf_max6690_ops;
100 i2c_set_clientdata(client, max); 100 i2c_set_clientdata(client, max);
101 101