From: Sascha Hauer Date: Sun, 28 Jul 2013 14:29:22 +0000 (+0200) Subject: pinctrl: imx: Use struct type for pins X-Git-Tag: v3.12-rc1~151^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f903f8a342e466f3da33b21ae60f1b11626b81a;p=pandora-kernel.git pinctrl: imx: Use struct type for pins 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 Acked-by: Shawn Guo Signed-off-by: Linus Walleij --- Reading git-diff-tree failed