forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/usb/cpia2/cpia2_usb.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /****************************************************************************
23 *
34 * Filename: cpia2_usb.c
....@@ -9,16 +10,6 @@
910 * This is a USB driver for CPia2 based video cameras.
1011 * The infrastructure of this driver is based on the cpia usb driver by
1112 * Jochen Scharrlach and Johannes Erdfeldt.
12
- *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License as published by
15
- * the Free Software Foundation; either version 2 of the License, or
16
- * (at your option) any later version.
17
- *
18
- * This program is distributed in the hope that it will be useful,
19
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- * GNU General Public License for more details.
2213 *
2314 * Stripped of 2.4 stuff ready for main kernel submit by
2415 * Alan Cox <alan@lxorguk.ukuu.org.uk>
....@@ -324,7 +315,7 @@
324315 continue;
325316 }
326317 DBG("Start of frame pattern found\n");
327
- v4l2_get_timestamp(&cam->workbuff->timestamp);
318
+ cam->workbuff->ts = ktime_get_ns();
328319 cam->workbuff->seq = cam->frame_count++;
329320 cam->workbuff->data[0] = 0xFF;
330321 cam->workbuff->data[1] = 0xD8;