[PATCH 0/5] usb: Replace deprecated API of extcon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux