#define pr_fmt(fmt) …
#define MODULE_NAME …
#include <linux/input.h>
#include "gspca.h"
#include "pac_common.h"
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
#define PAC207_CTRL_TIMEOUT …
#define PAC207_BRIGHTNESS_MIN …
#define PAC207_BRIGHTNESS_MAX …
#define PAC207_BRIGHTNESS_DEFAULT …
#define PAC207_BRIGHTNESS_REG …
#define PAC207_EXPOSURE_MIN …
#define PAC207_EXPOSURE_MAX …
#define PAC207_EXPOSURE_DEFAULT …
#define PAC207_EXPOSURE_REG …
#define PAC207_GAIN_MIN …
#define PAC207_GAIN_MAX …
#define PAC207_GAIN_DEFAULT …
#define PAC207_GAIN_REG …
#define PAC207_AUTOGAIN_DEADZONE …
static int led_invert;
module_param(led_invert, int, 0644);
MODULE_PARM_DESC(…) …;
struct sd { … };
static const struct v4l2_pix_format sif_mode[] = …;
static const __u8 pac207_sensor_init[][8] = …;
static void pac207_write_regs(struct gspca_dev *gspca_dev, u16 index,
const u8 *buffer, u16 length)
{ … }
static void pac207_write_reg(struct gspca_dev *gspca_dev, u16 index, u16 value)
{ … }
static int pac207_read_reg(struct gspca_dev *gspca_dev, u16 index)
{ … }
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 setcontrol(struct gspca_dev *gspca_dev, u16 reg, u16 val)
{ … }
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 int sd_start(struct gspca_dev *gspca_dev)
{ … }
static void sd_stopN(struct gspca_dev *gspca_dev)
{ … }
static void pac207_do_auto_gain(struct gspca_dev *gspca_dev)
{ … }
static void sd_pkt_scan(struct gspca_dev *gspca_dev,
u8 *data,
int len)
{ … }
#if IS_ENABLED(CONFIG_INPUT)
static int sd_int_pkt_scan(struct gspca_dev *gspca_dev,
u8 *data,
int len)
{ … }
#endif
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(…) …;