Skip to content

Commit 8e9bc36

Browse files
committed
extcon: Use capital letter for the name of external connectors
This patch uses the capital letter for the name of external connectors to improve the readability instead of small letter. Cc: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent 2a9de9c commit 8e9bc36

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

drivers/extcon/extcon.c

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,36 @@
3939
#define CABLE_NAME_MAX 30
4040

4141
static const char *extcon_name[] = {
42+
/* USB external connector */
4243
[EXTCON_USB] = "USB",
43-
[EXTCON_USB_HOST] = "USB-Host",
44+
[EXTCON_USB_HOST] = "USB-HOST",
45+
46+
/* Charger external connector */
4447
[EXTCON_TA] = "TA",
45-
[EXTCON_FAST_CHARGER] = "Fast-charger",
46-
[EXTCON_SLOW_CHARGER] = "Slow-charger",
47-
[EXTCON_CHARGE_DOWNSTREAM] = "Charge-downstream",
48-
[EXTCON_LINE_IN] = "Line-in",
49-
[EXTCON_LINE_OUT] = "Line-out",
50-
[EXTCON_MICROPHONE] = "Microphone",
51-
[EXTCON_HEADPHONE] = "Headphone",
48+
[EXTCON_FAST_CHARGER] = "FAST-CHARGER",
49+
[EXTCON_SLOW_CHARGER] = "SLOW-CHARGER",
50+
[EXTCON_CHARGE_DOWNSTREAM] = "CHARGE-DOWNSTREAM",
51+
52+
/* Audio/Video external connector */
53+
[EXTCON_LINE_IN] = "LINE-IN",
54+
[EXTCON_LINE_OUT] = "LINE-OUT",
55+
[EXTCON_MICROPHONE] = "MICROPHONE",
56+
[EXTCON_HEADPHONE] = "HEADPHONE",
57+
5258
[EXTCON_HDMI] = "HDMI",
5359
[EXTCON_MHL] = "MHL",
5460
[EXTCON_DVI] = "DVI",
5561
[EXTCON_VGA] = "VGA",
56-
[EXTCON_SPDIF_IN] = "SPDIF-in",
57-
[EXTCON_SPDIF_OUT] = "SPDIF-out",
58-
[EXTCON_VIDEO_IN] = "Video-in",
59-
[EXTCON_VIDEO_OUT] = "Video-out",
60-
[EXTCON_DOCK] = "Dock",
62+
[EXTCON_SPDIF_IN] = "SPDIF-IN",
63+
[EXTCON_SPDIF_OUT] = "SPDIF-OUT",
64+
[EXTCON_VIDEO_IN] = "VIDEO-IN",
65+
[EXTCON_VIDEO_OUT] = "VIDEO-OUT",
66+
67+
/* Etc external connector */
68+
[EXTCON_DOCK] = "DOCK",
6169
[EXTCON_JIG] = "JIG",
62-
[EXTCON_MECHANICAL] = "Mechanical",
70+
[EXTCON_MECHANICAL] = "MECHANICAL",
71+
6372
NULL,
6473
};
6574

0 commit comments

Comments
 (0)