extcon: palmas: make vbus/ID cable detection to platform choice
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 25 Mar 2013 16:12:42 +0000 (21:12 +0530)
committerMrutyunjay Sawant <msawant@nvidia.com>
Thu, 28 Mar 2013 15:21:04 +0000 (08:21 -0700)
commitde31f6b38ea1a96fb99c8f72db7029f23d693fb2
treea76e136a326a845f3371adab8edae4be0f2ee3a0
parent94c53ea26b58197b698014ec1581fe3fecb0c008
extcon: palmas: make vbus/ID cable detection to platform choice

Enable vbus/id pin detection only if it is enabled through
platform data. Also provide the connection name through platform
data.

bug 1242273

Change-Id: I6a95552c46e3c850549da656c6947f9bdcd7423f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/212609
Tested-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-by: Yunfan Zhang <yunfanz@nvidia.com>
GVS: Gerrit_Virtual_Submit
arch/arm/mach-tegra/board-macallan-power.c
drivers/extcon/extcon-palmas.c
include/linux/mfd/palmas.h