pinctrl: samsung: Detect and handle unsupported configuration types
authorTomasz Figa <t.figa@samsung.com>
Thu, 11 Oct 2012 08:11:07 +0000 (10:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2012 07:10:10 +0000 (09:10 +0200)
commit7c367d3da697846b80058859937f606c0081beda
tree4038a22fa5ef2a0d1ae6d2da9a6afb7e38b39278
parentddffeb8c4d0331609ef2581d84de4d763607bd37
pinctrl: samsung: Detect and handle unsupported configuration types

This patch modifies the pinctrl-samsung driver to detect when width of a
bit field is set to zero (which means that such configuraton type is not
supported) and return an error instead of trying to modify an inexistent
register.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-samsung.c