Skip to content

Commit

Permalink
extcon: Add new EXTCON_DISP_HMD for Head-mounted Display device
Browse files Browse the repository at this point in the history
This patch adds the new EXTCON_DISP_HMD id for Head-mounted Display[1] device.
The HMD device is usually for USB connector type So, the HMD connector
has the two extcon types of both EXTCON_TYPE_DISP and EXTCON_TYPE_USB.

[1] https://en.wikipedia.org/wiki/Head-mounted_display

Signed-off-by: Chanwoo Choi <[email protected]>
  • Loading branch information
chanwoochoi authored and kishon committed Sep 10, 2016
1 parent 2f25140 commit 736d25b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/extcon/extcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ struct __extcon_info {
.id = EXTCON_DISP_DP,
.name = "DP",
},
[EXTCON_DISP_HMD] = {
.type = EXTCON_TYPE_DISP | EXTCON_TYPE_USB,
.id = EXTCON_DISP_HMD,
.name = "HMD",
},

/* Miscellaneous external connector */
[EXTCON_DOCK] = {
Expand Down
1 change: 1 addition & 0 deletions include/linux/extcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
#define EXTCON_DISP_DVI 42 /* Digital Visual Interface */
#define EXTCON_DISP_VGA 43 /* Video Graphics Array */
#define EXTCON_DISP_DP 44 /* Display Port */
#define EXTCON_DISP_HMD 45 /* Head-Mounted Display */

/* Miscellaneous external connector */
#define EXTCON_DOCK 60
Expand Down

0 comments on commit 736d25b

Please sign in to comment.