pinctrl: utils : add support to pass config type in generic util APIs
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 21 Aug 2013 11:23:37 +0000 (16:53 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Aug 2013 06:56:32 +0000 (08:56 +0200)
commit3287c24088abded9f111ca797fdd36f86912d199
tree537d6a48cb062129171a9c491bc7add698aeb842
parent529301c19cbc315929e1b39ee71859061910b652
pinctrl: utils : add support to pass config type in generic util APIs

Add support to pass the config type like GROUP or PIN when using
the utils or generic pin configuration APIs. This will make the
APIs more generic.

Added additional inline APIs such that it can be use directly as
callback for the pinctrl_ops.

Changes from V1:
- Remove separate implementation for pins and group for
  pinctrl_utils_dt_free_map and improve this function
  to support both i.e. PINS and GROUPs.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf-generic.c
drivers/pinctrl/pinctrl-palmas.c
drivers/pinctrl/pinctrl-utils.c
include/linux/pinctrl/pinconf-generic.h