mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	extcon: usb-gpio: add support for ACPI gpio interface
GPIO resource could be retrieved through APCI as well. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Felipe Balbi <balbi@kernel.org> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:
		
							parent
							
								
									058b6659e9
								
							
						
					
					
						commit
						942c7924a5
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -27,6 +27,7 @@
 | 
				
			||||||
#include <linux/pm_wakeirq.h>
 | 
					#include <linux/pm_wakeirq.h>
 | 
				
			||||||
#include <linux/slab.h>
 | 
					#include <linux/slab.h>
 | 
				
			||||||
#include <linux/workqueue.h>
 | 
					#include <linux/workqueue.h>
 | 
				
			||||||
 | 
					#include <linux/acpi.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define USB_GPIO_DEBOUNCE_MS	20	/* ms */
 | 
					#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;
 | 
						struct usb_extcon_info *info;
 | 
				
			||||||
	int ret;
 | 
						int ret;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!np)
 | 
						if (!np && !ACPI_HANDLE(dev))
 | 
				
			||||||
		return -EINVAL;
 | 
							return -EINVAL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
 | 
						info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue