mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Acked-by: Kyungmin Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
246f6f2ff2
commit
155cb06c89
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue