#include <linux/module.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/i2c/uda1342.h>
#include <linux/slab.h>
static int write_reg(struct i2c_client *client, int reg, int value)
{ … }
static int uda1342_s_routing(struct v4l2_subdev *sd,
u32 input, u32 output, u32 config)
{ … }
static const struct v4l2_subdev_audio_ops uda1342_audio_ops = …;
static const struct v4l2_subdev_ops uda1342_ops = …;
static int uda1342_probe(struct i2c_client *client)
{ … }
static void uda1342_remove(struct i2c_client *client)
{ … }
static const struct i2c_device_id uda1342_id[] = …;
MODULE_DEVICE_TABLE(i2c, uda1342_id);
static struct i2c_driver uda1342_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;