Commit 8bb61fe1 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Benjamin Herrenschmidt

powerpc/windfarm: Remove superfluous name casts

wf_sensor.name is "const char *"
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent b63a0ffe
...@@ -133,7 +133,7 @@ static int wf_lm75_probe(struct i2c_client *client, ...@@ -133,7 +133,7 @@ static int wf_lm75_probe(struct i2c_client *client,
lm->inited = 0; lm->inited = 0;
lm->ds1775 = ds1775; lm->ds1775 = ds1775;
lm->i2c = client; lm->i2c = client;
lm->sens.name = (char *)name; /* XXX fix constness in structure */ lm->sens.name = name;
lm->sens.ops = &wf_lm75_ops; lm->sens.ops = &wf_lm75_ops;
i2c_set_clientdata(client, lm); i2c_set_clientdata(client, lm);
......
...@@ -95,7 +95,7 @@ static int wf_max6690_probe(struct i2c_client *client, ...@@ -95,7 +95,7 @@ static int wf_max6690_probe(struct i2c_client *client,
} }
max->i2c = client; max->i2c = client;
max->sens.name = (char *)name; /* XXX fix constness in structure */ max->sens.name = name;
max->sens.ops = &wf_max6690_ops; max->sens.ops = &wf_max6690_ops;
i2c_set_clientdata(client, max); i2c_set_clientdata(client, max);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment