Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Benjamin Herrenschmidt
8bb61fe1 b63a0ffe

+2 -2
+1 -1
drivers/macintosh/windfarm_lm75_sensor.c
··· 133 133 lm->inited = 0; 134 134 lm->ds1775 = ds1775; 135 135 lm->i2c = client; 136 - lm->sens.name = (char *)name; /* XXX fix constness in structure */ 136 + lm->sens.name = name; 137 137 lm->sens.ops = &wf_lm75_ops; 138 138 i2c_set_clientdata(client, lm); 139 139
+1 -1
drivers/macintosh/windfarm_max6690_sensor.c
··· 95 95 } 96 96 97 97 max->i2c = client; 98 - max->sens.name = (char *)name; /* XXX fix constness in structure */ 98 + max->sens.name = name; 99 99 max->sens.ops = &wf_max6690_ops; 100 100 i2c_set_clientdata(client, max); 101 101