mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-20 12:54:36 +08:00
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>
This commit is contained in:
parent
3cafbd4e50
commit
0cf6ad8a18
@ -41,7 +41,7 @@
|
|||||||
* every single port-type of the following cable names. Please choose cable
|
* every single port-type of the following cable names. Please choose cable
|
||||||
* names that are actually used in your extcon device.
|
* names that are actually used in your extcon device.
|
||||||
*/
|
*/
|
||||||
const char *extcon_cable_name[] = {
|
const char extcon_cable_name[][CABLE_NAME_MAX + 1] = {
|
||||||
[EXTCON_USB] = "USB",
|
[EXTCON_USB] = "USB",
|
||||||
[EXTCON_USB_HOST] = "USB-Host",
|
[EXTCON_USB_HOST] = "USB-Host",
|
||||||
[EXTCON_TA] = "TA",
|
[EXTCON_TA] = "TA",
|
||||||
@ -62,8 +62,6 @@ const char *extcon_cable_name[] = {
|
|||||||
[EXTCON_VIDEO_IN] = "Video-in",
|
[EXTCON_VIDEO_IN] = "Video-in",
|
||||||
[EXTCON_VIDEO_OUT] = "Video-out",
|
[EXTCON_VIDEO_OUT] = "Video-out",
|
||||||
[EXTCON_MECHANICAL] = "Mechanical",
|
[EXTCON_MECHANICAL] = "Mechanical",
|
||||||
|
|
||||||
NULL,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct class *extcon_class;
|
static struct class *extcon_class;
|
||||||
|
@ -68,7 +68,7 @@ enum extcon_cable_name {
|
|||||||
EXTCON_VIDEO_OUT,
|
EXTCON_VIDEO_OUT,
|
||||||
EXTCON_MECHANICAL,
|
EXTCON_MECHANICAL,
|
||||||
};
|
};
|
||||||
extern const char *extcon_cable_name[];
|
extern const char extcon_cable_name[][CABLE_NAME_MAX + 1];
|
||||||
|
|
||||||
struct extcon_cable;
|
struct extcon_cable;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user