summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoranish kumar <anish198519851985@gmail.com>2012-08-29 21:05:09 +0200
committerMyungJoo Ham <myungjoo.ham@samsung.com>2012-10-22 04:28:10 +0200
commit0cf6ad8a18f7f7bdbb81975188d9e0656ef277dd (patch)
tree1a41c7af25323fae9c52eedb2cc43a84420cb2a1 /include
parentextcon-max8997: remove usage of ret in max8997_muic_handle_charger_type_detach (diff)
downloadlinux-0cf6ad8a18f7f7bdbb81975188d9e0656ef277dd.tar.xz
linux-0cf6ad8a18f7f7bdbb81975188d9e0656ef277dd.zip
extcon: standard cable names definition and declaration changed
With this change now individual drivers can use standard cable names as below: static const char *arizona_cable[] = { extcon_cable_name[EXTCON_USB], extcon_cable_name[EXTCON_USB_HOST], "CUSTOM_CABLE" NULL, } Signed-off-by: anish kumar <anish198519851985@gmail.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/extcon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index 7443a560c9d0..2c26c14cd710 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -68,7 +68,7 @@ enum extcon_cable_name {
EXTCON_VIDEO_OUT,
EXTCON_MECHANICAL,
};
-extern const char *extcon_cable_name[];
+extern const char extcon_cable_name[][CABLE_NAME_MAX + 1];
struct extcon_cable;