Subject: [PATCH 01/15] pinctrl: sunxi: Add const qualifier to the pin descriptor

From: [email-masked] (Thomas Petazzoni)
Date: Tue, 29 Apr 2014 02:42:54 +0200

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