pinctrl: add utility functions for add map/configs
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 6 Aug 2013 13:12:33 +0000 (18:42 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 4 Apr 2014 15:24:15 +0000 (16:24 +0100)
commit0f9f831b34c459e274134fdf9e9914c3abc4c854
treebba46e9b699af965a008fe20a4acefd5e62d7951
parent150e48fdb38d78e9a317d6a7483de475b61d5d7f
pinctrl: add utility functions for add map/configs

Some of pincontrol driver needs the utility function to create map
list. The utility function needed for adding mux, configs etc.

In place of duplicating this in each driver, add the common utility
function in common file and use from device specific driver. This will
reduce the duplicating of code across drivers.

Changes from V1:
- Add this files in this patch and add common utility APIs to here.

Changes from V2:
- Nothing in code.
- Added Reviewed by Stephen.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit 1eb207a9ecaafb980704d8bc055a9a0269f62f8e)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/pinctrl/Makefile
drivers/pinctrl/pinctrl-utils.c [new file with mode: 0644]
drivers/pinctrl/pinctrl-utils.h [new file with mode: 0644]