| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* DVB USB compliant Linux driver for the Afatech 9005 |
|---|
| 2 | 3 | * USB1.1 DVB-T receiver. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Thanks to Afatech who kindly provided information. |
|---|
| 7 | 8 | * |
|---|
| 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 |
|---|
| 19 | 10 | */ |
|---|
| 20 | 11 | #include "af9005.h" |
|---|
| 21 | 12 | |
|---|
| .. | .. |
|---|
| 845 | 836 | |
|---|
| 846 | 837 | /* deb_info("rc_query\n"); */ |
|---|
| 847 | 838 | 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 */ |
|---|
| 849 | 840 | st->data[2] = 0x40; /* read remote */ |
|---|
| 850 | 841 | st->data[3] = 1; /* rest of packet length */ |
|---|
| 851 | 842 | st->data[4] = seq = st->sequence++; /* sequence number */ |
|---|
| .. | .. |
|---|
| 964 | 955 | } |
|---|
| 965 | 956 | |
|---|
| 966 | 957 | 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, |
|---|
| 969 | 960 | int *cold) |
|---|
| 970 | 961 | { |
|---|
| 971 | 962 | int ret; |
|---|