mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] usb: Replace deprecated API of extcon
@ 2015-07-01  4:11 Chanwoo Choi
  2015-07-01  4:11 ` [PATCH 1/5] usb: dwc3: omap: " Chanwoo Choi
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Chanwoo Choi @ 2015-07-01  4:11 UTC (permalink / raw)
  To: balbi, gregkh, linux-kernel, linux-usb; +Cc: cw00.choi, myungjoo.ham

This patch removes the deprecated API of extcon framwork
and then use the new extcon API with the unique id to indicate
the each external connector.

Th deprecated API with cable name as following:
- int extcon_register_interest(struct extcon_specific_cable_nb *obj,
				const char *extcon_name,
				const char *cable_name,
				struct notifier_block *nb);
- int extcon_unregister_interest(struct extcon_specific_cable_nb *nb);
- int extcon_get_cable_state(struct extcon_dev *edev, const char *cable_name);
- int extcon_set_cable_state(struct extcon_dev *edev, const char *cable_name,
				bool cable_state);

The recommeded API with unique id of each external connector as following:
- int extcon_register_notifier(struct extcon_dev *edev, unsigned int id,
				struct notifier_block *nb);
- int extcon_unregister_notifier(struct extcon_dev *edev, unsigned int id,
				struct notifier_block *nb);
- int extcon_get_cable_state_(struct extcon_dev *edev, unsigned int id);
- int extcon_set_cable_state_(struct extcon_dev *edev, unsigned int id,
				bool cable_state);

Depends on:
This patch-set is based on latest linux.git[1] because this patch-set have
the dependency of extcon patches for Linux v4.2.
[1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/

Chanwoo Choi (5):
  usb: dwc3: omap: Replace deprecated API of extcon
  usb: phy: omap-otg: Replace deprecated API of extcon
  usb: phy: tahvo: Use devm_extcon_dev_[allocate|register]() and replace deprecated API
  usb: renesas_usbhs: Replace deprecated API of extcon
  usb: phy: msm-usb: Replace deprecated API of extcon

 drivers/usb/dwc3/dwc3-omap.c       | 32 +++++++++++++-------------------
 drivers/usb/phy/phy-msm-usb.c      | 20 ++++++++++----------
 drivers/usb/phy/phy-omap-otg.c     | 22 +++++++++++-----------
 drivers/usb/phy/phy-tahvo.c        | 27 +++++++++++++--------------
 drivers/usb/renesas_usbhs/common.c |  2 +-
 include/linux/usb/msm_hsusb.h      |  2 +-
 6 files changed, 49 insertions(+), 56 deletions(-)

-- 
1.8.5.5


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

end of thread, other threads:[~2015-07-10 15:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-01  4:11 [PATCH 0/5] usb: Replace deprecated API of extcon Chanwoo Choi
2015-07-01  4:11 ` [PATCH 1/5] usb: dwc3: omap: " Chanwoo Choi
2015-07-06 17:23   ` Felipe Balbi
2015-07-10 15:53     ` Chanwoo Choi
2015-07-01  4:11 ` [PATCH 2/5] usb: phy: omap-otg: " Chanwoo Choi
2015-07-01  4:11 ` [PATCH 3/5] usb: phy: tahvo: Use devm_extcon_dev_[allocate|register]() and replace deprecated API Chanwoo Choi
2015-07-01  4:11 ` [PATCH 4/5] usb: renesas_usbhs: Replace deprecated API of extcon Chanwoo Choi
2015-07-01  4:11 ` [PATCH 5/5] usb: phy: msm-usb: " Chanwoo Choi

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

all inboxes | Powered by JetHome®