Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 942c7924 authored by Lu Baolu's avatar Lu Baolu Committed by Chanwoo Choi
Browse files

extcon: usb-gpio: add support for ACPI gpio interface



GPIO resource could be retrieved through APCI as well.

Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: default avatarFelipe Balbi <balbi@kernel.org>
Acked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 058b6659
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
#include <linux/pm_wakeirq.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/acpi.h>

#define USB_GPIO_DEBOUNCE_MS	20	/* ms */

@@ -92,7 +93,7 @@ static int usb_extcon_probe(struct platform_device *pdev)
	struct usb_extcon_info *info;
	int ret;

	if (!np)
	if (!np && !ACPI_HANDLE(dev))
		return -EINVAL;

	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);