aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-05-19extcon: Add extcon_get_edev_name() API to get the extcon device nameChanwoo Choi1-0/+9
This patch adds the extcon_get_edev_name() API to get the name of extcon device because all information inclued in the structure extcon_dev should be accessed by extcon core API instead of directly accessing the data. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2015-05-19extcon: Modify the device name as extcon[X] for sysfsChanwoo Choi1-3/+5
This patch modify the device name as extcon[X] for sysfs by using the 'extcon' prefix word instead of separate device name. On user-space aspect, user would find the some extcon drvier with extcon[X] pattern. So, this patch modify the device name as following: - /sys/class/extcon/[device name] -> /sys/class/extcon/extcon[X] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2015-03-23extcon: Fix missing locking when [un]registering notifiersHans de Goede1-4/+31
Since extcon.c is using raw_notifiers it must protect the notifier list itself when [un]registering notifiers to avoid the list changing while extcon_update_state is walking the list (through raw_notifier_call_chain). Signed-off-by: Hans de Goede <hdegoede@redhat.com> [cw00.choi: Apply this patch to extcon.c driver instead of old extcon-class.c] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2015-03-07extcon: Fix the checkpatch warningChanwoo Choi1-0/+1
This patch fixes the checkpatch warning about coding style. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2015-03-07extcon: Rename extcon core driverChanwoo Choi1-0/+1038
This patch renames the extcon core driver from extcon-class.c to extcon.c because '-class' postfix is not necessary. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>