linux/drivers/media/i2c/ak881x.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Driver for AK8813 / AK8814 TV-ecoders from Asahi Kasei Microsystems Co., Ltd. (AKM)
 *
 * Copyright (C) 2010, Guennadi Liakhovetski <[email protected]>
 */

#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <linux/module.h>

#include <media/i2c/ak881x.h>
#include <media/v4l2-common.h>
#include <media/v4l2-device.h>

#define AK881X_INTERFACE_MODE
#define AK881X_VIDEO_PROCESS1
#define AK881X_VIDEO_PROCESS2
#define AK881X_VIDEO_PROCESS3
#define AK881X_DAC_MODE
#define AK881X_STATUS
#define AK881X_DEVICE_ID
#define AK881X_DEVICE_REVISION

struct ak881x {};

static int reg_read(struct i2c_client *client, const u8 reg)
{}

static int reg_write(struct i2c_client *client, const u8 reg,
		     const u8 data)
{}

static int reg_set(struct i2c_client *client, const u8 reg,
		   const u8 data, u8 mask)
{}

static struct ak881x *to_ak881x(const struct i2c_client *client)
{}

#ifdef CONFIG_VIDEO_ADV_DEBUG
static int ak881x_g_register(struct v4l2_subdev *sd,
			     struct v4l2_dbg_register *reg)
{}

static int ak881x_s_register(struct v4l2_subdev *sd,
			     const struct v4l2_dbg_register *reg)
{}
#endif

static int ak881x_fill_fmt(struct v4l2_subdev *sd,
		struct v4l2_subdev_state *sd_state,
		struct v4l2_subdev_format *format)
{}

static int ak881x_enum_mbus_code(struct v4l2_subdev *sd,
		struct v4l2_subdev_state *sd_state,
		struct v4l2_subdev_mbus_code_enum *code)
{}

static int ak881x_get_selection(struct v4l2_subdev *sd,
				struct v4l2_subdev_state *sd_state,
				struct v4l2_subdev_selection *sel)
{}

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

static int ak881x_s_stream(struct v4l2_subdev *sd, int enable)
{}

static const struct v4l2_subdev_core_ops ak881x_subdev_core_ops =;

static const struct v4l2_subdev_video_ops ak881x_subdev_video_ops =;

static const struct v4l2_subdev_pad_ops ak881x_subdev_pad_ops =;

static const struct v4l2_subdev_ops ak881x_subdev_ops =;

static int ak881x_probe(struct i2c_client *client)
{}

static void ak881x_remove(struct i2c_client *client)
{}

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

static struct i2c_driver ak881x_i2c_driver =;

module_i2c_driver();

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