[PATCH 0/3] extcon: Refactoring the core and add resource-managed functions for notifier

From: Chanwoo Choi
Date: Mon Jun 27 2016 - 07:34:20 EST


This patch-set are refactoring the extcon core without the modification
of operation. The struct extcon_cabe moves from header file to extcon core
and make the new devres.c driver which only handles the resource-managed
functions. Lastly, this patch-set add resource-managed functions for extcon
register to handle it automatically when probe fail occur or device is removed.

Chanwoo Choi (3):
extcon: Move struct extcon_cable from header file to core
extcon: Split out the resource-managed functions from extcon core
extcon: Add resource-managed functions to register extcon notifier

drivers/extcon/Makefile | 2 +-
drivers/extcon/devres.c | 216 ++++++++++++++++++++++++++++++++++++++++++++++++
drivers/extcon/extcon.c | 137 +++++-------------------------
include/linux/extcon.h | 37 ++++-----
4 files changed, 254 insertions(+), 138 deletions(-)
create mode 100644 drivers/extcon/devres.c

--
1.9.1