| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * stv0900_core.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * Copyright (C) ST Microelectronics. |
|---|
| 7 | 8 | * Copyright (C) 2009 NetUP Inc. |
|---|
| 8 | 9 | * Copyright (C) 2009 Igor M. Liplianin <liplianin@netup.ru> |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 11 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 12 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 13 | | - * (at your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | | - * |
|---|
| 19 | | - * GNU General Public License for more details. |
|---|
| 20 | 10 | */ |
|---|
| 21 | 11 | |
|---|
| 22 | 12 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 203 | 193 | |
|---|
| 204 | 194 | u8 stv0900_get_bits(struct stv0900_internal *intp, u32 label) |
|---|
| 205 | 195 | { |
|---|
| 206 | | - u8 val = 0xff; |
|---|
| 196 | + u8 val; |
|---|
| 207 | 197 | u8 mask, pos; |
|---|
| 208 | 198 | |
|---|
| 209 | 199 | extract_mask_pos(label, &mask, &pos); |
|---|
| .. | .. |
|---|
| 280 | 270 | |
|---|
| 281 | 271 | static u32 stv0900_get_mclk_freq(struct stv0900_internal *intp, u32 ext_clk) |
|---|
| 282 | 272 | { |
|---|
| 283 | | - u32 mclk = 90000000, div = 0, ad_div = 0; |
|---|
| 273 | + u32 mclk, div, ad_div; |
|---|
| 284 | 274 | |
|---|
| 285 | 275 | div = stv0900_get_bits(intp, F0900_M_DIV); |
|---|
| 286 | 276 | ad_div = ((stv0900_get_bits(intp, F0900_SELX1RATIO) == 1) ? 4 : 6); |
|---|
| .. | .. |
|---|
| 744 | 734 | if (stv0900_get_standard(fe, demod) == STV0900_DVBS2_STANDARD) { |
|---|
| 745 | 735 | /* DVB-S2 delineator errors count */ |
|---|
| 746 | 736 | |
|---|
| 747 | | - /* retreiving number for errnous headers */ |
|---|
| 737 | + /* retrieving number for errnous headers */ |
|---|
| 748 | 738 | err_val1 = stv0900_read_reg(intp, BBFCRCKO1); |
|---|
| 749 | 739 | err_val0 = stv0900_read_reg(intp, BBFCRCKO0); |
|---|
| 750 | 740 | header_err_val = (err_val1 << 8) | err_val0; |
|---|
| 751 | 741 | |
|---|
| 752 | | - /* retreiving number for errnous packets */ |
|---|
| 742 | + /* retrieving number for errnous packets */ |
|---|
| 753 | 743 | err_val1 = stv0900_read_reg(intp, UPCRCKO1); |
|---|
| 754 | 744 | err_val0 = stv0900_read_reg(intp, UPCRCKO0); |
|---|
| 755 | 745 | *ucblocks = (err_val1 << 8) | err_val0; |
|---|
| .. | .. |
|---|
| 1967 | 1957 | kfree(state); |
|---|
| 1968 | 1958 | return NULL; |
|---|
| 1969 | 1959 | } |
|---|
| 1970 | | -EXPORT_SYMBOL(stv0900_attach); |
|---|
| 1960 | +EXPORT_SYMBOL_GPL(stv0900_attach); |
|---|
| 1971 | 1961 | |
|---|
| 1972 | 1962 | MODULE_PARM_DESC(debug, "Set debug"); |
|---|
| 1973 | 1963 | |
|---|