linux/drivers/mux/adg792a.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Multiplexer driver for Analog Devices ADG792A/G Triple 4:1 mux
 *
 * Copyright (C) 2017 Axentia Technologies AB
 *
 * Author: Peter Rosin <[email protected]>
 */

#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/mux/driver.h>
#include <linux/property.h>

#define ADG792A_LDSW
#define ADG792A_RESETB
#define ADG792A_DISABLE(mux)
#define ADG792A_DISABLE_ALL
#define ADG792A_MUX(mux, state)
#define ADG792A_MUX_ALL(state)

static int adg792a_write_cmd(struct i2c_client *i2c, u8 cmd, int reset)
{}

static int adg792a_set(struct mux_control *mux, int state)
{}

static const struct mux_control_ops adg792a_ops =;

static int adg792a_probe(struct i2c_client *i2c)
{}

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

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

static struct i2c_driver adg792a_driver =;
module_i2c_driver();

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