#include <linux/device.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/gpio/consumer.h>
#include <linux/platform_device.h>
#include <linux/usb/typec_dp.h>
#include <linux/usb/typec_mux.h>
struct gpio_sbu_mux { … };
static int gpio_sbu_switch_set(struct typec_switch_dev *sw,
enum typec_orientation orientation)
{ … }
static int gpio_sbu_mux_set(struct typec_mux_dev *mux,
struct typec_mux_state *state)
{ … }
static int gpio_sbu_mux_probe(struct platform_device *pdev)
{ … }
static void gpio_sbu_mux_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id gpio_sbu_mux_match[] = …;
MODULE_DEVICE_TABLE(of, gpio_sbu_mux_match);
static struct platform_driver gpio_sbu_mux_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;