lkml.org 
[lkml]   [2014]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCHv4 0/8] Resource-managed extcon device register function
Date
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

v4:
* fix the memory leak bug becuase of single pointer
* clean up the unnecessary code and make proper indentation

v3:
* send the right version instead of previous v1
* add the credit for reviewers according to the review rules

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 | 12 +++----
drivers/extcon/extcon-class.c | 64 ++++++++++++++++++++++++++++++++++++++
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 | 17 ++++++++++
9 files changed, 108 insertions(+), 66 deletions(-)

--
1.7.9.5



\
 
 \ /
  Last update: 2014-04-21 13:01    [W:0.047 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site