#define pr_fmt(fmt) …
#define MODULE_NAME …
#include "gspca.h"
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
struct sd { … };
static const struct v4l2_pix_format vga_mode[] = …;
#define SPCA50X_REG_USB …
#define CCDSP_SET …
#define TG_SET …
#undef DSPWIN_SET
#undef ALTER_GAMA
#define SPCA501_SNAPBIT …
#define SPCA501_SNAPCTRL …
#define SPCA501_OFFSET_GPIO …
#define SPCA501_OFFSET_TYPE …
#define SPCA501_OFFSET_TURN3A …
#define SPCA501_OFFSET_FRAMSEQ …
#define SPCA501_OFFSET_COMPRESS …
#define SPCA501_OFFSET_QUANT …
#define SPCA501_OFFSET_QUANT2 …
#define SPCA501_OFFSET_DATA …
#define SPCA501_PROP_COMP_ENABLE(d) …
#define SPCA501_PROP_SNAP(d) …
#define SPCA501_PROP_SNAP_CTRL(d) …
#define SPCA501_PROP_COMP_THRESH(d) …
#define SPCA501_PROP_COMP_QUANT(d) …
#define SPCA501_REG_CCDSP …
#define SPCA501_REG_CTLRL …
#define SPCA501_A11 …
#define SPCA501_A12 …
#define SPCA501_A13 …
#define SPCA501_A21 …
#define SPCA501_A22 …
#define SPCA501_A23 …
#define SPCA501_A31 …
#define SPCA501_A32 …
#define SPCA501_A33 …
static const __u16 spca501_open_data[][3] = …;
static const __u16 spca501_init_data[][3] = …;
static const __u16 spca501_3com_open_data[][3] = …;
static const __u16 spca501c_arowana_open_data[][3] = …;
static const __u16 spca501c_arowana_init_data[][3] = …;
static const __u16 spca501c_mysterious_open_data[][3] = …;
static const __u16 spca501c_mysterious_init_data[][3] = …;
static int reg_write(struct gspca_dev *gspca_dev,
__u16 req, __u16 index, __u16 value)
{ … }
static int write_vector(struct gspca_dev *gspca_dev, const __u16 data[][3])
{ … }
static void setbrightness(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setcontrast(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setcolors(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setblue_balance(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setred_balance(struct gspca_dev *gspca_dev, s32 val)
{ … }
static int sd_config(struct gspca_dev *gspca_dev,
const struct usb_device_id *id)
{ … }
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_stop0(struct gspca_dev *gspca_dev)
{ … }
static void sd_pkt_scan(struct gspca_dev *gspca_dev,
u8 *data,
int len)
{ … }
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 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(…) …;