linux/drivers/extcon/extcon-qcom-spmi-misc.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * extcon-qcom-spmi-misc.c - Qualcomm USB extcon driver to support USB ID
 *			and VBUS detection based on extcon-usb-gpio.c.
 *
 * Copyright (C) 2016 Linaro, Ltd.
 * Stephen Boyd <[email protected]>
 */

#include <linux/devm-helpers.h>
#include <linux/extcon-provider.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/workqueue.h>

#define USB_ID_DEBOUNCE_MS

struct qcom_usb_extcon_info {};

static const unsigned int qcom_usb_extcon_cable[] =;

static void qcom_usb_extcon_detect_cable(struct work_struct *work)
{}

static irqreturn_t qcom_usb_irq_handler(int irq, void *dev_id)
{}

static int qcom_usb_extcon_probe(struct platform_device *pdev)
{}

#ifdef CONFIG_PM_SLEEP
static int qcom_usb_extcon_suspend(struct device *dev)
{}

static int qcom_usb_extcon_resume(struct device *dev)
{}
#endif

static SIMPLE_DEV_PM_OPS(qcom_usb_extcon_pm_ops,
			 qcom_usb_extcon_suspend, qcom_usb_extcon_resume);

static const struct of_device_id qcom_usb_extcon_dt_match[] =;
MODULE_DEVICE_TABLE(of, qcom_usb_extcon_dt_match);

static struct platform_driver qcom_usb_extcon_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();