]> git.karo-electronics.de Git - linux-beck.git/commit
Extcon: support notification based on the state changes.
authorDonggeun Kim <dg77.kim@samsung.com>
Fri, 20 Apr 2012 05:16:24 +0000 (14:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Apr 2012 16:23:09 +0000 (09:23 -0700)
commit74c5d09bd562edc220d6e076b8f1e118819c178f
tree65f35b6066fe135405797acc419b4bb6f346e4af
parentbe48308a24c7651bf968b561dbd590edb8166d62
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 <dg77.kim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
--
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 <gregkh@linuxfoundation.org>
drivers/extcon/extcon_class.c
include/linux/extcon.h