pinctrl: add utility functions for add map/configs
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 6 Aug 2013 13:12:33 +0000 (18:42 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 14 Aug 2013 19:00:41 +0000 (21:00 +0200)
commit1eb207a9ecaafb980704d8bc055a9a0269f62f8e
treebd4264b775dc59bd08279ee265eed0fd0d1e7732
parent744f0a9adb6a3478c9753eef56b0614ee69f969e
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>
drivers/pinctrl/Makefile
drivers/pinctrl/pinctrl-utils.c [new file with mode: 0644]
drivers/pinctrl/pinctrl-utils.h [new file with mode: 0644]