| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /**************************************************************************** |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Filename: cpia2_usb.c |
|---|
| .. | .. |
|---|
| 9 | 10 | * This is a USB driver for CPia2 based video cameras. |
|---|
| 10 | 11 | * The infrastructure of this driver is based on the cpia usb driver by |
|---|
| 11 | 12 | * 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. |
|---|
| 22 | 13 | * |
|---|
| 23 | 14 | * Stripped of 2.4 stuff ready for main kernel submit by |
|---|
| 24 | 15 | * Alan Cox <alan@lxorguk.ukuu.org.uk> |
|---|
| .. | .. |
|---|
| 324 | 315 | continue; |
|---|
| 325 | 316 | } |
|---|
| 326 | 317 | DBG("Start of frame pattern found\n"); |
|---|
| 327 | | - v4l2_get_timestamp(&cam->workbuff->timestamp); |
|---|
| 318 | + cam->workbuff->ts = ktime_get_ns(); |
|---|
| 328 | 319 | cam->workbuff->seq = cam->frame_count++; |
|---|
| 329 | 320 | cam->workbuff->data[0] = 0xFF; |
|---|
| 330 | 321 | cam->workbuff->data[1] = 0xD8; |
|---|