pinctrl: disallow map table entries with NULL dev_name field
authorStephen Warren <swarren@nvidia.com>
Wed, 22 Feb 2012 21:25:58 +0000 (14:25 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 24 Feb 2012 05:24:52 +0000 (06:24 +0100)
commit1681f5ae4ca25bddb6f7b6d4f463cc83e3d1ad01
treefc37580130beadbc5e0898ddb9b5fec32b662859
parentf7b9006f4598dd252dca5225f3cf88179c36276f
pinctrl: disallow map table entries with NULL dev_name field

Hog entries are mapping table entries with .ctrl_dev_name == .dev_name.
All other mapping table entries need .dev_name set so that they will
match some pinctrl_get() call. All extant PIN_MAP*() macros set
.dev_name.

So, there is no reason to allow mapping table entries without .dev_name
set. Update the code and documentation to disallow this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/pinctrl.txt
drivers/pinctrl/core.c
include/linux/pinctrl/machine.h