pinctrl: use kasprintf() in pinmux_request_gpio()
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 13 Sep 2012 19:48:14 +0000 (21:48 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Sep 2012 13:53:13 +0000 (15:53 +0200)
commit23a895aee6081c144ffcc61eaf52dc62e10b3bd1
tree42310daf0adc223c388100bd89ffba084db220f7
parent9e605cb68a21d5704839a192a46ebcf387773704
pinctrl: use kasprintf() in pinmux_request_gpio()

Instead of using a temporary buffer, snprintf() and kstrdup(), just
use kasprintf() that does the same thing in just oneline.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Colin Cross <ccross@google.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinmux.c