#define pr_fmt(fmt) …
#define MODULE_NAME …
#include <linux/input.h>
#include <linux/slab.h>
#include "gspca.h"
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
struct sd { … };
enum sensors { … };
static const struct v4l2_pix_format vga_mode_t16[] = …;
struct additional_sensor_data { … };
static const u8 n4_om6802[] = …;
static const u8 n4_other[] = …;
static const u8 n4_tas5130a[] = …;
static const u8 n4_lt168g[] = …;
static const struct additional_sensor_data sensor_data[] = …;
#define MAX_EFFECTS …
static const u8 effects_table[MAX_EFFECTS][6] = …;
#define GAMMA_MAX …
static const u8 gamma_table[GAMMA_MAX+1][17] = …;
static const u8 tas5130a_sensor_init[][8] = …;
static u8 sensor_reset[] = …;
static u8 reg_r(struct gspca_dev *gspca_dev,
u16 index)
{ … }
static void reg_w(struct gspca_dev *gspca_dev,
u16 index)
{ … }
static void reg_w_buf(struct gspca_dev *gspca_dev,
const u8 *buffer, u16 len)
{ … }
static void reg_w_ixbuf(struct gspca_dev *gspca_dev,
u8 reg,
const u8 *buffer, u16 len)
{ … }
static void om6802_sensor_init(struct gspca_dev *gspca_dev)
{ … }
static int sd_config(struct gspca_dev *gspca_dev,
const struct usb_device_id *id)
{ … }
static void setbrightness(struct gspca_dev *gspca_dev, s32 brightness)
{ … }
static void setcontrast(struct gspca_dev *gspca_dev, s32 contrast)
{ … }
static void setcolors(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setgamma(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setawb_n_RGB(struct gspca_dev *gspca_dev)
{ … }
static void setsharpness(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setfreq(struct gspca_dev *gspca_dev, s32 val)
{ … }
static int sd_init(struct gspca_dev *gspca_dev)
{ … }
static void setmirror(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void seteffect(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void poll_sensor(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 int sd_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
{ … }
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(…) …;