diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-01-30 23:38:12 +0100 |
---|---|---|
committer | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-02-25 18:34:34 +0100 |
commit | 8d898fd5966caefb60aeb1ba6b33a3ff1b768db0 (patch) | |
tree | c9921a2d76fa0bf41f6f8496d87e83bdc0d17d24 /drivers/ntb/ntb_regs.h | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
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<PIN#>". 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 <sebastian.hesselbarth@gmail.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'drivers/ntb/ntb_regs.h')
0 files changed, 0 insertions, 0 deletions