usb: typec: altmode: Remove the notification chain
Using the generic notification chain is not reasonable with the alternate modes because it would require dependencies between the drivers of the components that need the notifications, and the typec drivers. There are no users for the alternate mode notifications, so removing the chain and the API for it completely. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20200211112531.86510-6-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
684cb4b79e
commit
bbe80c9a89
@@ -126,13 +126,6 @@ void typec_altmode_put_plug(struct typec_altmode *plug);
|
||||
struct typec_altmode *typec_match_altmode(struct typec_altmode **altmodes,
|
||||
size_t n, u16 svid, u8 mode);
|
||||
|
||||
struct typec_altmode *
|
||||
typec_altmode_register_notifier(struct device *dev, u16 svid, u8 mode,
|
||||
struct notifier_block *nb);
|
||||
|
||||
void typec_altmode_unregister_notifier(struct typec_altmode *adev,
|
||||
struct notifier_block *nb);
|
||||
|
||||
/**
|
||||
* typec_altmode_get_orientation - Get cable plug orientation
|
||||
* altmode: Handle to the alternate mode
|
||||
|
Reference in New Issue
Block a user