linux/drivers/media/dvb-frontends/lnbh29.c

// SPDX-License-Identifier: GPL-2.0
//
// Driver for LNB supply and control IC STMicroelectronics LNBH29
//
// Copyright (c) 2018 Socionext Inc.

#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>

#include <media/dvb_frontend.h>
#include "lnbh29.h"

/**
 * struct lnbh29_priv - LNBH29 driver private data
 * @i2c:         Pointer to the I2C adapter structure
 * @i2c_address: I2C address of LNBH29 chip
 * @config:      Registers configuration
 *               offset 0: 1st register address, always 0x01 (DATA)
 *               offset 1: DATA register value
 */
struct lnbh29_priv {};

#define LNBH29_STATUS_OLF
#define LNBH29_STATUS_OTF
#define LNBH29_STATUS_VMON
#define LNBH29_STATUS_PNG
#define LNBH29_STATUS_PDO
#define LNBH29_VSEL_MASK
#define LNBH29_VSEL_0
/* Min: 13.188V, Typ: 13.667V, Max:14V */
#define LNBH29_VSEL_13
/* Min: 18.158V, Typ: 18.817V, Max:19.475V */
#define LNBH29_VSEL_18

static int lnbh29_read_vmon(struct lnbh29_priv *priv)
{}

static int lnbh29_set_voltage(struct dvb_frontend *fe,
			      enum fe_sec_voltage voltage)
{}

static void lnbh29_release(struct dvb_frontend *fe)
{}

struct dvb_frontend *lnbh29_attach(struct dvb_frontend *fe,
				   struct lnbh29_config *cfg,
				   struct i2c_adapter *i2c)
{}
EXPORT_SYMBOL();

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