linux/drivers/mux/adgs1408.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * ADGS1408/ADGS1409 SPI MUX driver
 *
 * Copyright 2018 Analog Devices Inc.
 */

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

#define ADGS1408_SW_DATA
#define ADGS1408_REG_READ(reg)
#define ADGS1408_DISABLE
#define ADGS1408_MUX(state)

enum adgs1408_chip_id {};

static int adgs1408_spi_reg_write(struct spi_device *spi,
				  u8 reg_addr, u8 reg_data)
{}

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

static const struct mux_control_ops adgs1408_ops =;

static int adgs1408_probe(struct spi_device *spi)
{}

static const struct spi_device_id adgs1408_spi_id[] =;
MODULE_DEVICE_TABLE(spi, adgs1408_spi_id);

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

static struct spi_driver adgs1408_driver =;
module_spi_driver();

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