linux/drivers/i2c/muxes/i2c-mux-reg.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * I2C multiplexer using a single register
 *
 * Copyright 2015 Freescale Semiconductor
 * York Sun  <[email protected]>
 */

#include <linux/i2c.h>
#include <linux/i2c-mux.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/platform_data/i2c-mux-reg.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

struct regmux {};

static int i2c_mux_reg_set(const struct regmux *mux, unsigned int chan_id)
{}

static int i2c_mux_reg_select(struct i2c_mux_core *muxc, u32 chan)
{}

static int i2c_mux_reg_deselect(struct i2c_mux_core *muxc, u32 chan)
{}

#ifdef CONFIG_OF
static int i2c_mux_reg_probe_dt(struct regmux *mux,
				struct platform_device *pdev)
{}
#else
static int i2c_mux_reg_probe_dt(struct regmux *mux,
				struct platform_device *pdev)
{
	return 0;
}
#endif

static int i2c_mux_reg_probe(struct platform_device *pdev)
{}

static void i2c_mux_reg_remove(struct platform_device *pdev)
{}

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

static struct platform_driver i2c_mux_reg_driver =;

module_platform_driver();

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