#define pr_fmt(fmt) …
#define MODULE_NAME …
#include "gspca.h"
#include "stk1135.h"
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
struct sd { … };
static const struct v4l2_pix_format stk1135_modes[] = …;
static u8 reg_r(struct gspca_dev *gspca_dev, u16 index)
{ … }
static void reg_w(struct gspca_dev *gspca_dev, u16 index, u8 val)
{ … }
static void reg_w_mask(struct gspca_dev *gspca_dev, u16 index, u8 val, u8 mask)
{ … }
static int sd_config(struct gspca_dev *gspca_dev,
const struct usb_device_id *id)
{ … }
static int stk1135_serial_wait_ready(struct gspca_dev *gspca_dev)
{ … }
static u8 sensor_read_8(struct gspca_dev *gspca_dev, u8 addr)
{ … }
static u16 sensor_read_16(struct gspca_dev *gspca_dev, u8 addr)
{ … }
static void sensor_write_8(struct gspca_dev *gspca_dev, u8 addr, u8 data)
{ … }
static void sensor_write_16(struct gspca_dev *gspca_dev, u8 addr, u16 data)
{ … }
static void sensor_set_page(struct gspca_dev *gspca_dev, u8 page)
{ … }
static u16 sensor_read(struct gspca_dev *gspca_dev, u16 reg)
{ … }
static void sensor_write(struct gspca_dev *gspca_dev, u16 reg, u16 val)
{ … }
static void sensor_write_mask(struct gspca_dev *gspca_dev,
u16 reg, u16 val, u16 mask)
{ … }
struct sensor_val { … };
static void stk1135_configure_mt9m112(struct gspca_dev *gspca_dev)
{ … }
static void stk1135_configure_clock(struct gspca_dev *gspca_dev)
{ … }
static void stk1135_camera_disable(struct gspca_dev *gspca_dev)
{ … }
static int sd_init(struct gspca_dev *gspca_dev)
{ … }
static int sd_start(struct gspca_dev *gspca_dev)
{ … }
static void sd_stopN(struct gspca_dev *gspca_dev)
{ … }
static void sd_pkt_scan(struct gspca_dev *gspca_dev,
u8 *data,
int len)
{ … }
static void sethflip(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setvflip(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void stk1135_dq_callback(struct gspca_dev *gspca_dev)
{ … }
static int sd_s_ctrl(struct v4l2_ctrl *ctrl)
{ … }
static const struct v4l2_ctrl_ops sd_ctrl_ops = …;
static int sd_init_controls(struct gspca_dev *gspca_dev)
{ … }
static void stk1135_try_fmt(struct gspca_dev *gspca_dev, struct v4l2_format *fmt)
{ … }
static int stk1135_enum_framesizes(struct gspca_dev *gspca_dev,
struct v4l2_frmsizeenum *fsize)
{ … }
static const struct sd_desc sd_desc = …;
static const struct usb_device_id device_table[] = …;
MODULE_DEVICE_TABLE(usb, device_table);
static int sd_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{ … }
static struct usb_driver sd_driver = …;
module_usb_driver(…) …;