From: Sebastian Hesselbarth Date: Thu, 30 Jan 2014 22:38:12 +0000 (+0100) Subject: pinctrl: mvebu: count unnamed controls and allocate name buffer X-Git-Tag: v3.15-rc1~150^2~24^2^2~2^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d898fd5966caefb60aeb1ba6b33a3ff1b768db0;p=pandora-kernel.git pinctrl: mvebu: count unnamed controls and allocate name buffer pinctrl-mvebu allows SoCs to pass unnamed controls that will get an auto-generated name of "mpp". Currently, we are allocating name buffers on a per-control basis while looping over passed controls. This counts the total number of unnamed controls and allocates a global name buffer instead. The new buffer is then used while assigning controls to pinctrl groups later. Signed-off-by: Sebastian Hesselbarth Tested-by: Andrew Lunn Tested-by: Thomas Petazzoni --- Reading git-diff-tree failed