mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCHv4 0/9] extcon: Support devm_extcon_dev_allocate/free()
@ 2014-04-25  0:42 Chanwoo Choi
  2014-04-25  0:42 ` [PATCHv4 1/9] extcon: Add extcon_dev_allocate/free() to control the memory of extcon device Chanwoo Choi
                   ` (8 more replies)
  0 siblings, 9 replies; 19+ messages in thread
From: Chanwoo Choi @ 2014-04-25  0:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: myungjoo.ham, balbi, gg, kishon, ckeepax, broonie, k.kozlowski,
	kyungmin.park, Chanwoo Choi

This patchset add devm_extcon_dev_allocate/free() for the resource management
of extcon device. And devm_extcon_dev_allocate() handles all of supported cables.

Changes from v3:
- Change return value of extcon_dev_allocate()/devm_extcon_dev_allocate()
  if failed to allocate the memory of extcon device (NULL -> ERR_PTR(-ENOMEM))
- All of extcon provier drivers check return value using IS_ERR() macro
- Fix the description of function due to changing return type if failure

Changes from v2:
- Resolve bisectable issue about patch-1
  extcon: Add extcon_dev_allocate/free() to control the memory of extcon device
- extcon_dev_allocate/free() don't handle all behaviors for supported cables

Changes from v1:
- Rebase it on latest extcon-next branch

Chanwoo Choi (9):
  extcon: Add extcon_dev_allocate/free() to control the memory of extcon device
  extcon: Add devm_extcon_dev_allocate/free to manage the resource of extcon device
  extcon: max8997: Use devm_extcon_dev_allocate for extcon_dev
  extcon: max77693: Use devm_extcon_dev_allocate for extcon_dev
  extcon: max14577: Use devm_extcon_dev_allocate for extcon_dev
  extcon: arizona: Use devm_extcon_dev_allocate for extcon_dev
  extcon: adc-jack: Use devm_extcon_dev_allocate for extcon_dev
  extcon: gpio: Use devm_extcon_dev_allocate for extcon_dev
  extcon: palmas: Use devm_extcon_dev_allocate for extcon_dev

 drivers/extcon/extcon-adc-jack.c |  21 ++++----
 drivers/extcon/extcon-arizona.c  |  30 ++++++-----
 drivers/extcon/extcon-class.c    | 108 ++++++++++++++++++++++++++++++++++-----
 drivers/extcon/extcon-gpio.c     |  23 ++++++---
 drivers/extcon/extcon-max14577.c |   7 +--
 drivers/extcon/extcon-max77693.c |   9 ++--
 drivers/extcon/extcon-max8997.c  |   7 ++-
 drivers/extcon/extcon-palmas.c   |  35 +++++++------
 include/linux/extcon.h           |  24 +++++++++
 include/linux/mfd/palmas.h       |   2 +-
 10 files changed, 196 insertions(+), 70 deletions(-)

-- 
1.8.0


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2014-04-28 10:24 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-25  0:42 [PATCHv4 0/9] extcon: Support devm_extcon_dev_allocate/free() Chanwoo Choi
2014-04-25  0:42 ` [PATCHv4 1/9] extcon: Add extcon_dev_allocate/free() to control the memory of extcon device Chanwoo Choi
2014-04-25 15:12   ` Felipe Balbi
2014-04-25  0:42 ` [PATCHv4 2/9] extcon: Add devm_extcon_dev_allocate/free to manage the resource " Chanwoo Choi
2014-04-25 15:14   ` Felipe Balbi
2014-04-25  0:42 ` [PATCHv4 3/9] extcon: max8997: Use devm_extcon_dev_allocate for extcon_dev Chanwoo Choi
2014-04-25 15:14   ` Felipe Balbi
2014-04-25  0:42 ` [PATCHv4 4/9] extcon: max77693: " Chanwoo Choi
2014-04-25 15:15   ` Felipe Balbi
2014-04-25  0:42 ` [PATCHv4 5/9] extcon: max14577: " Chanwoo Choi
2014-04-25 15:16   ` Felipe Balbi
2014-04-25  0:42 ` [PATCHv4 6/9] extcon: arizona: " Chanwoo Choi
2014-04-25 15:16   ` Felipe Balbi
2014-04-25  0:42 ` [PATCHv4 7/9] extcon: adc-jack: " Chanwoo Choi
2014-04-25 15:17   ` Felipe Balbi
2014-04-25  0:42 ` [PATCHv4 8/9] extcon: gpio: " Chanwoo Choi
2014-04-25 15:18   ` Felipe Balbi
2014-04-25  0:42 ` [PATCHv4 9/9] extcon: palmas: " Chanwoo Choi
2014-04-28 10:24   ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome