[PATCH 5/5] pinctrl: imx: Use struct type for pins
Linus Walleij
linus.walleij at linaro.org
Wed Aug 14 16:41:20 EDT 2013
On Fri, Aug 9, 2013 at 2:20 PM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> The i.MX pinctrl driver uses 5 different arrays for storing the
> informations for pins. This requires five allocations. Instead,
> use a struct type which is more cache friendly, readable and
> requires less allocations. One array of integers is still needed
> since the pinctrl framework forces us to maintain it.
> This also adds checks whether the allocations are succesful which
> were missing.
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Hm appears to be dependent on 4/5 so can't apply this one
in isolation ... but it looks good.
Would be nice to have a handshake from Shawn and/or Dong
on these patches BTW.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list