In this patch, upon the commits of Android kernel, we have added:- Relocated and renamed for extcon.- Comments, module name, and author information are updated- Code clean for successing patches- Bugfix: enabling write access without write functions- Class/device/sysfs create/remove handling- Added comments about uevents- Format changes for extcon_dev_register() to have a parent dev.

--Changes from v2- Updated name_show- Sysfs entries are handled by class itself.- Updated the method to add/remove devices for the class- Comments on uevent send- Able to become a module- Compatible with Android platform

diff --git a/Documentation/ABI/testing/sysfs-class-extcon b/Documentation/ABI/testing/sysfs-class-extconnew file mode 100644index 0000000..59a4b1c--- /dev/null+++ b/Documentation/ABI/testing/sysfs-class-extcon@@ -0,0 +1,26 @@+What: /sys/class/extcon/.../+Date: December 2011+Contact: MyungJoo Ham <myungjoo.ham@samsung.com>+Description:+ Provide a place in sysfs for the extcon objects.+ This allows accessing extcon specific variables.+ The name of extcon object denoted as ... is the name given+ with extcon_dev_register.++What: /sys/class/extcon/.../name+Date: December 2011+Contact: MyungJoo Ham <myungjoo.ham@samsung.com>+Description:+ The /sys/class/extcon/.../name shows the name of the extcon+ object. If the extcon object has an optional callback+ "show_name" defined, the callback will provide the name with+ this sysfs node.++What: /sys/class/extcon/.../state+Date: December 2011+Contact: MyungJoo Ham <myungjoo.ham@samsung.com>+Description:+ The /sys/class/extcon/.../state shows the cable attach/detach+ information of the corresponding extcon object. If the extcon+ objecct has an optional callback "show_state" defined, the+ callback will provide the name with this sysfs node.diff --git a/drivers/Kconfig b/drivers/Kconfigindex b5e6f24..da57c81 100644--- a/drivers/Kconfig+++ b/drivers/Kconfig@@ -136,4 +136,6 @@ source "drivers/hv/Kconfig"