linux/drivers/media/usb/gspca/stk1135.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Syntek STK1135 subdriver
 *
 * Copyright (c) 2013 Ondrej Zary
 *
 * Based on Syntekdriver (stk11xx) by Nicolas VIVIEN:
 *   http://syntekdriver.sourceforge.net
 */

#define pr_fmt(fmt)

#define MODULE_NAME

#include "gspca.h"
#include "stk1135.h"

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();


/* specific webcam descriptor */
struct sd {};

static const struct v4l2_pix_format stk1135_modes[] =;

/* -- read a register -- */
static u8 reg_r(struct gspca_dev *gspca_dev, u16 index)
{}

/* -- write a register -- */
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)
{}

/* this function is called at probe time */
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 {};

/* configure MT9M112 sensor */
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)
{}

/* this function is called at probe and resume time */
static int sd_init(struct gspca_dev *gspca_dev)
{}

/* -- start the camera -- */
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,			/* isoc packet */
			int len)			/* iso packet length */
{}

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)
{}

/* sub-driver description */
static const struct sd_desc sd_desc =;

/* -- module initialisation -- */
static const struct usb_device_id device_table[] =;
MODULE_DEVICE_TABLE(usb, device_table);

/* -- device connect -- */
static int sd_probe(struct usb_interface *intf,
			const struct usb_device_id *id)
{}

static struct usb_driver sd_driver =;

module_usb_driver();