pinctrl: utils : add support to pass config type in generic util APIs
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 29 Aug 2013 07:36:11 +0000 (12:36 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:44:27 +0000 (13:44 -0700)
commitaa57366516a250b969c44ed87f8a554116db38d7
tree194e75930cb474a0a4924f41ce8c66fa24df5210
parent62759b1905ff16f79b9e13fbf70e49ffd8445197
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>
(cherry picked from commit 3287c24088abded9f111ca797fdd36f86912d199)

Conflicts:

drivers/pinctrl/pinctrl-palmas.c

Change-Id: Ib37c1692040c606f07267e617cea915876b4fb1e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/267844
drivers/pinctrl/pinconf-generic.c
drivers/pinctrl/pinctrl-utils.c
include/linux/pinctrl/pinconf-generic.h