1 /* SPDX-License-Identifier: GPL-2.0-or-later */
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
13  */
14 
15 #ifndef STV06XX_ST6422_H_
16 #define STV06XX_ST6422_H_
17 
18 #include "stv06xx_sensor.h"
19 
20 static int st6422_probe(struct sd *sd);
21 static int st6422_start(struct sd *sd);
22 static int st6422_init(struct sd *sd);
23 static int st6422_init_controls(struct sd *sd);
24 static int st6422_stop(struct sd *sd);
25 
26 const struct stv06xx_sensor stv06xx_sensor_st6422 = {
27 	.name = "ST6422",
28 	/* No known way to lower framerate in case of less bandwidth */
29 	.min_packet_size = { 300, 847 },
30 	.max_packet_size = { 300, 847 },
31 	.init = st6422_init,
32 	.init_controls = st6422_init_controls,
33 	.probe = st6422_probe,
34 	.start = st6422_start,
35 	.stop = st6422_stop,
36 };
37 
38 #endif
39