#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_OFFSET_DATA …
#define SPCA50X_REG_USB …
#define SPCA50X_USB_CTRL …
#define SPCA50X_CUSB_ENABLE …
#define SPCA50X_REG_GLOBAL …
#define SPCA50X_GMISC0_IDSEL …
#define SPCA50X_GLOBAL_MISC0 …
#define SPCA50X_GLOBAL_MISC1 …
#define SPCA50X_GLOBAL_MISC3 …
#define SPCA50X_GMISC3_SAA7113RST …
#define SPCA50X_REG_COMPRESS …
static const u8 spca505_init_data[][3] = …;
static const u8 spca505_open_data_ccd[][3] = …;
#define initial_brightness …
static const u8 spca505b_init_data[][3] = …;
static const u8 spca505b_open_data_ccd[][3] = …;
static int reg_write(struct gspca_dev *gspca_dev,
u16 req, u16 index, u16 value)
{ … }
static int reg_read(struct gspca_dev *gspca_dev,
u16 req,
u16 index)
{ … }
static int write_vector(struct gspca_dev *gspca_dev,
const u8 data[][3])
{ … }
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 void setbrightness(struct gspca_dev *gspca_dev, s32 brightness)
{ … }
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(…) …;