linux/drivers/media/i2c/tw9903.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2005-2006 Micronas USA Inc.
 */

#include <linux/module.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/videodev2.h>
#include <linux/ioctl.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <linux/slab.h>

MODULE_DESCRIPTION();
MODULE_LICENSE();

/*
 * This driver is based on the wis-tw9903.c source that was in
 * drivers/staging/media/go7007. That source had commented out code for
 * saturation and scaling (neither seemed to work). If anyone ever gets
 * hardware to test this driver, then that code might be useful to look at.
 * You need to get the kernel sources of, say, kernel 3.8 where that
 * wis-tw9903 driver is still present.
 */

struct tw9903 {};

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

static const u8 initial_registers[] =;

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

static int write_regs(struct v4l2_subdev *sd, const u8 *regs)
{}

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

static int tw9903_s_std(struct v4l2_subdev *sd, v4l2_std_id norm)
{}


static int tw9903_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static int tw9903_log_status(struct v4l2_subdev *sd)
{}

/* --------------------------------------------------------------------------*/

static const struct v4l2_ctrl_ops tw9903_ctrl_ops =;

static const struct v4l2_subdev_core_ops tw9903_core_ops =;

static const struct v4l2_subdev_video_ops tw9903_video_ops =;

static const struct v4l2_subdev_ops tw9903_ops =;

/* --------------------------------------------------------------------------*/

static int tw9903_probe(struct i2c_client *client)
{}

static void tw9903_remove(struct i2c_client *client)
{}

/* ----------------------------------------------------------------------- */

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

static struct i2c_driver tw9903_driver =;
module_i2c_driver();