#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <media/i2c/saa7115.h>
#include "stk1160.h"
#include "stk1160-reg.h"
static unsigned int input;
module_param(input, int, 0644);
MODULE_PARM_DESC(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
static const struct usb_device_id stk1160_id_table[] = …;
MODULE_DEVICE_TABLE(usb, stk1160_id_table);
static unsigned short saa7113_addrs[] = …;
int stk1160_read_reg(struct stk1160 *dev, u16 reg, u8 *value)
{ … }
int stk1160_write_reg(struct stk1160 *dev, u16 reg, u16 value)
{ … }
void stk1160_select_input(struct stk1160 *dev)
{ … }
static void stk1160_reg_reset(struct stk1160 *dev)
{ … }
static void stk1160_release(struct v4l2_device *v4l2_dev)
{ … }
#define hb_mult(wMaxPacketSize) …
static int stk1160_scan_usb(struct usb_interface *intf, struct usb_device *udev,
unsigned int *max_pkt_size)
{ … }
static int stk1160_probe(struct usb_interface *interface,
const struct usb_device_id *id)
{ … }
static void stk1160_disconnect(struct usb_interface *interface)
{ … }
static struct usb_driver stk1160_usb_driver = …;
module_usb_driver(…) …;