diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-06-16 05:36:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-19 01:30:42 +0200 |
commit | 155cb06c89f13af3e3e6bd520b9c62762f532d7b (patch) | |
tree | 88dfa414fe5a1082037d3b36f873d730dfabdee3 /drivers/extcon/extcon-max8997.c | |
parent | kmsg - kmsg_dump() fix CONFIG_PRINTK=n compilation (diff) | |
download | linux-155cb06c89f13af3e3e6bd520b9c62762f532d7b.tar.xz linux-155cb06c89f13af3e3e6bd520b9c62762f532d7b.zip |
extcon: Fix wrong index in max8997_extcon_cable[]
Currently, the index of "Dock-desk" and "Dock-card" are the same.
Thus the latter one overrides the first one.
Then we have problem when calling extcon_find_cable_index() because
edev->supported_cable[7] only matches "Dock-card".
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/extcon/extcon-max8997.c')
-rw-r--r-- | drivers/extcon/extcon-max8997.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c index 23416e443765..5ecf1763b5d4 100644 --- a/drivers/extcon/extcon-max8997.c +++ b/drivers/extcon/extcon-max8997.c @@ -116,8 +116,8 @@ const char *max8997_extcon_cable[] = { [5] = "Charge-downstream", [6] = "MHL", [7] = "Dock-desk", - [7] = "Dock-card", - [8] = "JIG", + [8] = "Dock-card", + [9] = "JIG", NULL, }; |