[PATCH 01/15] pinctrl: sunxi: Add const qualifier to the pin descriptor
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon Apr 28 17:42:54 PDT 2014
Dear Maxime Ripard,
On Mon, 28 Apr 2014 12:01:27 -0700, Maxime Ripard wrote:
> - pctl->desc = (struct sunxi_pinctrl_desc *)device->data;
> + pctl->desc = (const struct sunxi_pinctrl_desc *)device->data;
I believe you no longer need the cast here. You used to need a cast
because you were putting a 'const void *' pointer into a non-const
pointer. Now that pctl->desc is const, the cast has become useless, I
believe.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the linux-arm-kernel
mailing list