linux/drivers/extcon
Chanwoo Choi 815429b39d extcon: Add new extcon_register_notifier_all() to monitor all external connectors
The extcon core already provides the extcon_register_notifier() function
in order to register the notifier block which is used to monitor
the state change for the specific external connector such as EXTCON_USB,
EXTCON_USB_HOST and so on. The extcon consumer uses the this function.

The extcon consumer might need to monitor the all supported external
connectors from the extcon device. In this case, The extcon consumer
should have each notifier_block structure for each external connector.

This patch adds the new extcon_register_notifier_all() function
that extcon consumer is able to monitor the state change of all
supported external connectors by using only one notifier_block structure.

- List of new added functions:
int extcon_register_notifier_all(struct extcon_dev *edev,
			struct notifier_block *nb);
int extcon_unregister_notifier_all(struct extcon_dev *edev,
			struct notifier_block *nb);
int devm_extcon_register_notifier_all(struct device *dev,
			struct extcon_dev *edev, struct notifier_block *nb);
void devm_extcon_unregister_notifier_all(struct device *dev,
			struct extcon_dev *edev, struct notifier_block *nb);

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
2017-04-04 11:22:42 +09:00
..
devres.c extcon: Add new extcon_register_notifier_all() to monitor all external connectors 2017-04-04 11:22:42 +09:00
extcon-adc-jack.c extcon: adc-jack: Use the internal data instead of using struct extcon_dev 2017-01-09 10:04:11 +09:00
extcon-arizona.c extcon: arizona: Simplify micd_pol_gpio handling 2017-01-09 10:04:09 +09:00
extcon-axp288.c extcon: axp288: Set EXTCON_USB when EXTCON_CHG_USB_SDP was set 2017-01-09 10:04:11 +09:00
extcon-gpio.c Merge branch 'next' into resolution 2016-09-15 16:45:20 +05:30
extcon-intel-int3496.c extcon: int3496: Set the id pin to direction-input if necessary 2017-03-22 18:29:48 +09:00
extcon-max3355.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-max8997.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-max14577.c extcon: Restructure multi-line comments to follow codingstyle 2017-01-09 10:04:09 +09:00
extcon-max77693.c extcon: Restructure multi-line comments to follow codingstyle 2017-01-09 10:04:09 +09:00
extcon-max77843.c extcon: Restructure multi-line comments to follow codingstyle 2017-01-09 10:04:09 +09:00
extcon-palmas.c extcon: palmas: Use dev_dbg macro for the debug messages 2017-01-25 15:03:54 +09:00
extcon-qcom-spmi-misc.c extcon: qcom-spmi-misc: Sync the extcon state on interrupt 2016-10-26 16:04:29 +09:00
extcon-rt8973a.c scripts/spelling.txt: add "swithc" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
extcon-rt8973a.h extcon: rt8973a: Add Richtek RT8973A extcon driver 2014-09-22 11:43:08 +09:00
extcon-sm5502.c extcon: Restructure multi-line comments to follow codingstyle 2017-01-09 10:04:09 +09:00
extcon-sm5502.h extcon: sm5502: Move sm5502.h header file to extcon directory 2014-09-22 11:43:08 +09:00
extcon-usb-gpio.c extcon: usb-gpio: Add pinctrl operation during system PM 2017-01-09 10:04:12 +09:00
extcon.c extcon: Add new extcon_register_notifier_all() to monitor all external connectors 2017-04-04 11:22:42 +09:00
extcon.h extcon: Add new extcon_register_notifier_all() to monitor all external connectors 2017-04-04 11:22:42 +09:00
Kconfig extcon: int3496: Add dependency on X86 as it's Intel specific 2017-03-22 18:29:46 +09:00
Makefile extcon: int3496: Add Intel INT3496 ACPI device extcon driver 2017-01-09 10:04:11 +09:00