[PATCHv2 0/8] Resource-managed extcon device register function

From: Sangjung Woo
Date: Thu Apr 17 2014 - 06:13:09 EST


These patches add resource-managed extcon device register functions for
developers' convenience and apply them to related device driver files.
This work can make the code more tidy since extcon device is automatically
unregistered on driver detach so tiresome managing codes could be removed.


Changelog:

v2:
* modify and clean up all unnecessary code reported by Chanwoo
* fix the bug reported by Seung-Woo
* add the credit for reviewers

v1:
* initial version

Sangjung Woo (8):
extcon: Add resource-managed extcon register function
extcon: adc-jack: Use devm_extcon_dev_register()
extcon: gpio: Use devm_extcon_dev_register()
extcon: max14577: Use devm_extcon_dev_register()
extcon: max77693: Use devm_extcon_dev_register()
extcon: max8997: Use devm_extcon_dev_register()
extcon: palmas: Use devm_extcon_dev_register()
extcon: arizona: Use devm_extcon_dev_register()

drivers/extcon/extcon-adc-jack.c | 30 +++++---------
drivers/extcon/extcon-arizona.c | 13 ++----
drivers/extcon/extcon-class.c | 83 ++++++++++++++++++++++++++++++++++++++
drivers/extcon/extcon-gpio.c | 16 ++------
drivers/extcon/extcon-max14577.c | 9 +----
drivers/extcon/extcon-max77693.c | 7 +---
drivers/extcon/extcon-max8997.c | 4 +-
drivers/extcon/extcon-palmas.c | 15 +++----
include/linux/extcon.h | 8 ++++
9 files changed, 118 insertions(+), 67 deletions(-)

--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/