linux/drivers/media/i2c/adv7393.c

/*
 * adv7393 - ADV7393 Video Encoder Driver
 *
 * The encoder hardware does not support SECAM.
 *
 * Copyright (C) 2010-2012 ADVANSEE - http://www.advansee.com/
 * Benoît Thébaudeau <[email protected]>
 *
 * Based on ADV7343 driver,
 *
 * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation version 2.
 *
 * This program is distributed .as is. WITHOUT ANY WARRANTY of any
 * kind, whether express or implied; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/ctype.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/videodev2.h>
#include <linux/uaccess.h>

#include <media/i2c/adv7393.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>

#include "adv7393_regs.h"

MODULE_DESCRIPTION();
MODULE_LICENSE();

static bool debug;
module_param(debug, bool, 0644);
MODULE_PARM_DESC();

struct adv7393_state {};

static inline struct adv7393_state *to_state(struct v4l2_subdev *sd)
{}

static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl)
{}

static inline int adv7393_write(struct v4l2_subdev *sd, u8 reg, u8 value)
{}

static const u8 adv7393_init_reg_val[] =;

/*
 *			    2^32
 * FSC(reg) =  FSC (HZ) * --------
 *			  27000000
 */
static const struct adv7393_std_info stdinfo[] =;

static int adv7393_setstd(struct v4l2_subdev *sd, v4l2_std_id std)
{}

static int adv7393_setoutput(struct v4l2_subdev *sd, u32 output_type)
{}

static int adv7393_log_status(struct v4l2_subdev *sd)
{}

static int adv7393_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static const struct v4l2_ctrl_ops adv7393_ctrl_ops =;

static const struct v4l2_subdev_core_ops adv7393_core_ops =;

static int adv7393_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)
{}

static int adv7393_s_routing(struct v4l2_subdev *sd,
		u32 input, u32 output, u32 config)
{}

static const struct v4l2_subdev_video_ops adv7393_video_ops =;

static const struct v4l2_subdev_ops adv7393_ops =;

static int adv7393_initialize(struct v4l2_subdev *sd)
{}

static int adv7393_probe(struct i2c_client *client)
{}

static void adv7393_remove(struct i2c_client *client)
{}

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

static struct i2c_driver adv7393_driver =;
module_i2c_driver();