forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/media/usb/dvb-usb/ttusb2.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* DVB USB compliant linux driver for Technotrend DVB USB boxes and clones
23 * (e.g. Pinnacle 400e DVB-S USB2.0).
34 *
....@@ -16,11 +17,7 @@
1617 * Copyright (c) 2003 Felix Domke <tmbinc@elitedvb.net>
1718 * Copyright (C) 2005-6 Patrick Boettcher <pb@linuxtv.org>
1819 *
19
- * This program is free software; you can redistribute it and/or modify it
20
- * under the terms of the GNU General Public License as published by the Free
21
- * Software Foundation, version 2.
22
- *
23
- * see Documentation/media/dvb-drivers/dvb-usb.rst for more information
20
+ * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
2421 */
2522 #define DVB_USB_LOG_PREFIX "ttusb2"
2623 #include "dvb-usb.h"
....@@ -470,9 +467,10 @@
470467
471468
472469 /* Callbacks for DVB USB */
473
-static int ttusb2_identify_state (struct usb_device *udev, struct
474
- dvb_usb_device_properties *props, struct dvb_usb_device_description **desc,
475
- int *cold)
470
+static int ttusb2_identify_state(struct usb_device *udev,
471
+ const struct dvb_usb_device_properties *props,
472
+ const struct dvb_usb_device_description **desc,
473
+ int *cold)
476474 {
477475 *cold = udev->descriptor.iManufacturer == 0 && udev->descriptor.iProduct == 0;
478476 return 0;