summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/windfarm_max6690_sensor.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-11-12 20:07:14 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-12-05 16:06:22 +1100
commit8bb61fe1d03123a625265d599a22fb12af79e1ae (patch)
treecd15de2ed622344b0f299bec115c51cc8beb1136 /drivers/macintosh/windfarm_max6690_sensor.c
parentb63a0ffe35de7e5f9b907bbc2c783e702f7e15af (diff)
downloadlinux-8bb61fe1d03123a625265d599a22fb12af79e1ae.tar.gz
linux-8bb61fe1d03123a625265d599a22fb12af79e1ae.tar.bz2
linux-8bb61fe1d03123a625265d599a22fb12af79e1ae.zip
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/windfarm_max6690_sensor.c')
-rw-r--r--drivers/macintosh/windfarm_max6690_sensor.c2
1 files changed, 1 insertions, 1 deletions
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,
}
max->i2c = client;
- max->sens.name = (char *)name; /* XXX fix constness in structure */
+ max->sens.name = name;
max->sens.ops = &wf_max6690_ops;
i2c_set_clientdata(client, max);