forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/media/usb/dvb-usb/af9005.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* DVB USB compliant Linux driver for the Afatech 9005
23 * USB1.1 DVB-T receiver.
34 *
....@@ -5,17 +6,7 @@
56 *
67 * Thanks to Afatech who kindly provided information.
78 *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * see Documentation/media/dvb-drivers/dvb-usb.rst for more information
9
+ * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
1910 */
2011 #include "af9005.h"
2112
....@@ -845,7 +836,7 @@
845836
846837 /* deb_info("rc_query\n"); */
847838 st->data[0] = 3; /* rest of packet length low */
848
- st->data[1] = 0; /* rest of packet lentgh high */
839
+ st->data[1] = 0; /* rest of packet length high */
849840 st->data[2] = 0x40; /* read remote */
850841 st->data[3] = 1; /* rest of packet length */
851842 st->data[4] = seq = st->sequence++; /* sequence number */
....@@ -964,8 +955,8 @@
964955 }
965956
966957 static int af9005_identify_state(struct usb_device *udev,
967
- struct dvb_usb_device_properties *props,
968
- struct dvb_usb_device_description **desc,
958
+ const struct dvb_usb_device_properties *props,
959
+ const struct dvb_usb_device_description **desc,
969960 int *cold)
970961 {
971962 int ret;