pinctrl: sunxi: Search the description array by pin id
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 8 Jun 2013 10:05:43 +0000 (12:05 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Jun 2013 09:56:53 +0000 (11:56 +0200)
commit814d4f2e153dfb337ee894d1f23863e623add4ab
tree232e43127d6c3f6774f1b377044a79e63f428294
parent79bae27ff9e9d20196bec723e50f504cf5ef18ad
pinctrl: sunxi: Search the description array by pin id

Avoid to use expensive string manipulation functions and search by pin
id when possible.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sunxi.c