Commit 74c5d09b authored by Committed by Greg Kroah-Hartman
Extcon: support notification based on the state changes.
State changes of extcon devices have been notified via kobjet_uevent. This patch adds notifier interfaces in order to allow device drivers to get notified easily. Along with notifier interface, extcon_get_extcon_dev() function is added so that device drivers may discover a extcon_dev easily. Signed-off-by: Donggeun Kim <email@example.com> Signed-off-by: MyungJoo Ham <firstname.lastname@example.org> Signed-off-by: Kyungmin Park <email@example.com> Reviewed-by: Mark Brown <firstname.lastname@example.org> -- Changes from RFC - Renamed switch to extcon - Bugfix: extcon_dev_unregister() - Bugfix: "edev->dev" is "internal" data. - Added kerneldoc comments. - Reworded comments. Signed-off-by: Greg Kroah-Hartman <email@example.com>
Showing with 104 additions and 0 deletions