]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - drivers/media/usb/gspca/stv06xx/stv06xx_st6422.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157
[thirdparty/kernel/stable.git] / drivers / media / usb / gspca / stv06xx / stv06xx_st6422.h
CommitLineData
c942fddf 1/* SPDX-License-Identifier: GPL-2.0-or-later */
8668d504
HG
2/*
3 * Support for the sensor part which is integrated (I think) into the
4 * st6422 stv06xx alike bridge, as its integrated there are no i2c writes
5 * but instead direct bridge writes.
6 *
7 * Copyright (c) 2009 Hans de Goede <hdegoede@redhat.com>
8 *
9 * Strongly based on qc-usb-messenger, which is:
10 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher
11 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland
12 * Copyright (c) 2002, 2003 Tuukka Toivonen
8668d504
HG
13 */
14
15#ifndef STV06XX_ST6422_H_
16#define STV06XX_ST6422_H_
17
18#include "stv06xx_sensor.h"
19
20static int st6422_probe(struct sd *sd);
21static int st6422_start(struct sd *sd);
22static int st6422_init(struct sd *sd);
dec9c514 23static int st6422_init_controls(struct sd *sd);
8668d504 24static int st6422_stop(struct sd *sd);
8668d504 25
8668d504
HG
26const struct stv06xx_sensor stv06xx_sensor_st6422 = {
27 .name = "ST6422",
c0b33bdc
HG
28 /* No known way to lower framerate in case of less bandwidth */
29 .min_packet_size = { 300, 847 },
30 .max_packet_size = { 300, 847 },
8668d504 31 .init = st6422_init,
dec9c514 32 .init_controls = st6422_init_controls,
8668d504
HG
33 .probe = st6422_probe,
34 .start = st6422_start,
35 .stop = st6422_stop,
8668d504
HG
36};
37
38#endif