#include <linux/module.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/ioctl.h>
#include <linux/uaccess.h>
#include <linux/i2c.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
struct tlv320aic23b_state { … };
static inline struct tlv320aic23b_state *to_state(struct v4l2_subdev *sd)
{ … }
static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl)
{ … }
static int tlv320aic23b_write(struct v4l2_subdev *sd, int reg, u16 val)
{ … }
static int tlv320aic23b_s_clock_freq(struct v4l2_subdev *sd, u32 freq)
{ … }
static int tlv320aic23b_s_ctrl(struct v4l2_ctrl *ctrl)
{ … }
static int tlv320aic23b_log_status(struct v4l2_subdev *sd)
{ … }
static const struct v4l2_ctrl_ops tlv320aic23b_ctrl_ops = …;
static const struct v4l2_subdev_core_ops tlv320aic23b_core_ops = …;
static const struct v4l2_subdev_audio_ops tlv320aic23b_audio_ops = …;
static const struct v4l2_subdev_ops tlv320aic23b_ops = …;
static int tlv320aic23b_probe(struct i2c_client *client)
{ … }
static void tlv320aic23b_remove(struct i2c_client *client)
{ … }
static const struct i2c_device_id tlv320aic23b_id[] = …;
MODULE_DEVICE_TABLE(i2c, tlv320aic23b_id);
static struct i2c_driver tlv320aic23b_driver = …;
module_i2c_driver(…) …;