forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/meye/meye.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Motion Eye video4linux driver for Sony Vaio PictureBook
34 *
....@@ -11,16 +12,6 @@
1112 *
1213 * Some parts borrowed from various video4linux drivers, especially
1314 * bttv-driver.c and zoran.c, see original files for credits.
14
- *
15
- * This program is free software; you can redistribute it and/or modify
16
- * it under the terms of the GNU General Public License as published by
17
- * the Free Software Foundation; either version 2 of the License, or
18
- * (at your option) any later version.
19
- *
20
- * This program is distributed in the hope that it will be useful,
21
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
- * GNU General Public License for more details.
2415 */
2516
2617 #ifndef _MEYE_PRIV_H_
....@@ -277,11 +268,11 @@
277268 struct meye_grab_buffer {
278269 int state; /* state of buffer */
279270 unsigned long size; /* size of jpg frame */
280
- struct timeval timestamp; /* timestamp */
271
+ u64 ts; /* timestamp */
281272 unsigned long sequence; /* sequence number */
282273 };
283274
284
-/* size of kfifos containings buffer indices */
275
+/* size of kfifos containing buffer indices */
285276 #define MEYE_QUEUE_SIZE MEYE_MAX_BUFNBRS
286277
287278 /* Motion Eye device structure */
....@@ -314,9 +305,7 @@
314305 u16 colour;
315306 struct meye_params params; /* additional parameters */
316307 unsigned long in_use; /* set to 1 if the device is in use */
317
-#ifdef CONFIG_PM
318308 u8 pm_mchip_mode; /* old mchip mode */
319
-#endif
320309 };
321310
322311 #endif