pinctrl: handle zero found dt pinconfig properties better
authorHeiko Stübner <heiko@sntech.de>
Fri, 14 Jun 2013 15:43:21 +0000 (17:43 +0200)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Nov 2013 04:04:27 +0000 (12:04 +0800)
commite978099cb6156018068101a60b3c6478b341ee20
tree6a6f5ec940ecd191af123c106ae8832b15e06d27
parent9757d8280ec6c56f133e1cedfc5123bb0067e6c0
pinctrl: handle zero found dt pinconfig properties better

This adds a shortcut when no valid pinconf properties are found
in the parsed dt node, to set the values immediately and return.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf-generic.c