diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2015-05-19 13:58:49 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-05-22 12:58:53 +0300 |
commit | 8e9bc36df56d6fa1db78032533c0e167f8a0bdcf (patch) | |
tree | a8dcc5af808baa9d237c316c36967ab89076ee5c /drivers/extcon | |
parent | 2a9de9c0f08d61fbe3764a21d22d0b72df97d6ae (diff) | |
download | linux-8e9bc36df56d6fa1db78032533c0e167f8a0bdcf.tar.xz |
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>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon.c | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index a57355fc8fea..fce2687bde8e 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -39,27 +39,36 @@ #define CABLE_NAME_MAX 30 static const char *extcon_name[] = { + /* USB external connector */ [EXTCON_USB] = "USB", - [EXTCON_USB_HOST] = "USB-Host", + [EXTCON_USB_HOST] = "USB-HOST", + + /* Charger external connector */ [EXTCON_TA] = "TA", - [EXTCON_FAST_CHARGER] = "Fast-charger", - [EXTCON_SLOW_CHARGER] = "Slow-charger", - [EXTCON_CHARGE_DOWNSTREAM] = "Charge-downstream", - [EXTCON_LINE_IN] = "Line-in", - [EXTCON_LINE_OUT] = "Line-out", - [EXTCON_MICROPHONE] = "Microphone", - [EXTCON_HEADPHONE] = "Headphone", + [EXTCON_FAST_CHARGER] = "FAST-CHARGER", + [EXTCON_SLOW_CHARGER] = "SLOW-CHARGER", + [EXTCON_CHARGE_DOWNSTREAM] = "CHARGE-DOWNSTREAM", + + /* Audio/Video external connector */ + [EXTCON_LINE_IN] = "LINE-IN", + [EXTCON_LINE_OUT] = "LINE-OUT", + [EXTCON_MICROPHONE] = "MICROPHONE", + [EXTCON_HEADPHONE] = "HEADPHONE", + [EXTCON_HDMI] = "HDMI", [EXTCON_MHL] = "MHL", [EXTCON_DVI] = "DVI", [EXTCON_VGA] = "VGA", - [EXTCON_SPDIF_IN] = "SPDIF-in", - [EXTCON_SPDIF_OUT] = "SPDIF-out", - [EXTCON_VIDEO_IN] = "Video-in", - [EXTCON_VIDEO_OUT] = "Video-out", - [EXTCON_DOCK] = "Dock", + [EXTCON_SPDIF_IN] = "SPDIF-IN", + [EXTCON_SPDIF_OUT] = "SPDIF-OUT", + [EXTCON_VIDEO_IN] = "VIDEO-IN", + [EXTCON_VIDEO_OUT] = "VIDEO-OUT", + + /* Etc external connector */ + [EXTCON_DOCK] = "DOCK", [EXTCON_JIG] = "JIG", - [EXTCON_MECHANICAL] = "Mechanical", + [EXTCON_MECHANICAL] = "MECHANICAL", + NULL, }; |