linux/drivers/usb/typec/mux/pi3usb30532.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Pericom PI3USB30532 Type-C cross switch / mux driver
 *
 * Copyright (c) 2017-2018 Hans de Goede <[email protected]>
 */

#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/usb/typec_dp.h>
#include <linux/usb/typec_mux.h>

#define PI3USB30532_CONF

#define PI3USB30532_CONF_OPEN
#define PI3USB30532_CONF_SWAP
#define PI3USB30532_CONF_4LANE_DP
#define PI3USB30532_CONF_USB3
#define PI3USB30532_CONF_USB3_AND_2LANE_DP

struct pi3usb30532 {};

static int pi3usb30532_set_conf(struct pi3usb30532 *pi, u8 new_conf)
{}

static int pi3usb30532_sw_set(struct typec_switch_dev *sw,
			      enum typec_orientation orientation)
{}

static int
pi3usb30532_mux_set(struct typec_mux_dev *mux, struct typec_mux_state *state)
{}

static int pi3usb30532_probe(struct i2c_client *client)
{}

static void pi3usb30532_remove(struct i2c_client *client)
{}

static const struct i2c_device_id pi3usb30532_table[] =;
MODULE_DEVICE_TABLE(i2c, pi3usb30532_table);

static struct i2c_driver pi3usb30532_driver =;

module_i2c_driver();

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