forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/media/usb/dvb-usb/a800.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* DVB USB framework compliant Linux driver for the AVerMedia AverTV DVB-T
23 * USB2.0 (A800) DVB-T receiver.
34 *
....@@ -7,11 +8,7 @@
78 * - AVerMedia who kindly provided information and
89 * - Glen Harris who suffered from my mistakes during development.
910 *
10
- * This program is free software; you can redistribute it and/or modify it
11
- * under the terms of the GNU General Public License as published by the Free
12
- * Software Foundation, version 2.
13
- *
14
- * see Documentation/media/dvb-drivers/dvb-usb.rst for more information
11
+ * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
1512 */
1613 #include "dibusb.h"
1714
....@@ -30,8 +27,10 @@
3027 }
3128
3229 /* assure to put cold to 0 for iManufacturer == 1 */
33
-static int a800_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props,
34
- struct dvb_usb_device_description **desc, int *cold)
30
+static int a800_identify_state(struct usb_device *udev,
31
+ const struct dvb_usb_device_properties *props,
32
+ const struct dvb_usb_device_description **desc,
33
+ int *cold)
3534 {
3635 *cold = udev->descriptor.iManufacturer != 1;
3736 return 0;