You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
Revert "usb: typec: typec_port_register_altmodes() depends on CONFIG_NO_GKI"
This reverts commit afaeb74a36.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -1984,7 +1984,6 @@ typec_port_register_altmode(struct typec_port *port,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(typec_port_register_altmode);
|
||||
|
||||
#ifdef CONFIG_NO_GKI
|
||||
void typec_port_register_altmodes(struct typec_port *port,
|
||||
const struct typec_altmode_ops *ops, void *drvdata,
|
||||
struct typec_altmode **altmodes, size_t n)
|
||||
@@ -2038,7 +2037,6 @@ void typec_port_register_altmodes(struct typec_port *port,
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(typec_port_register_altmodes);
|
||||
#endif /* CONFIG_NO_GKI */
|
||||
|
||||
/**
|
||||
* typec_register_port - Register a USB Type-C Port
|
||||
|
||||
@@ -141,17 +141,9 @@ struct typec_altmode
|
||||
*typec_port_register_altmode(struct typec_port *port,
|
||||
const struct typec_altmode_desc *desc);
|
||||
|
||||
#ifdef CONFIG_NO_GKI
|
||||
void typec_port_register_altmodes(struct typec_port *port,
|
||||
const struct typec_altmode_ops *ops, void *drvdata,
|
||||
struct typec_altmode **altmodes, size_t n);
|
||||
#else
|
||||
static inline void typec_port_register_altmodes(struct typec_port *port,
|
||||
const struct typec_altmode_ops *ops, void *drvdata,
|
||||
struct typec_altmode **altmodes, size_t n)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
void typec_unregister_altmode(struct typec_altmode *altmode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user