]> git.karo-electronics.de Git - linux-beck.git/commit
sh-pfc: Return an error if a pin doesn't support the requested direction
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 13 Mar 2013 17:18:30 +0000 (18:18 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 15 Mar 2013 12:33:54 +0000 (13:33 +0100)
commit6dc9b4550a74cad7daed0be192030983dad44755
treee6d3168831a6832aae9bd1e267c228321c7a30f9
parent9a643c9a11259955ec6961f9a2509604c6df1cd9
sh-pfc: Return an error if a pin doesn't support the requested direction

When setting a pin direction verify that the requested direction is
supported, and return an error if it isn't.

This requires pin configuration information to be supplied by SoC data.
The check is a no-op if the information is not supplied.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/pinctrl.c