hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/dvb-frontends/cx24123.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Conexant cx24123/cx24109 - DVB QPSK Satellite demod/tuner driver
34 *
....@@ -6,16 +7,6 @@
67 * Support for KWorld DVB-S 100 by Vadim Catana <skystar@moldova.cc>
78 *
89 * Support for CX24123/CX24113-NIM by Patrick Boettcher <pb@linuxtv.org>
9
- *
10
- * This program is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU General Public License as
12
- * published by the Free Software Foundation; either version 2 of
13
- * the License, or (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 GNU
18
- * General Public License for more details.
1910 */
2011
2112 #include <linux/slab.h>
....@@ -440,7 +431,7 @@
440431 u32 div = a / b;
441432 if (a % b >= b / 2)
442433 ++div;
443
- if (div < (1 << 31)) {
434
+ if (div < (1UL << 31)) {
444435 for (exp = 1; div > exp; nearest++)
445436 exp += exp;
446437 }
....@@ -1087,7 +1078,7 @@
10871078 if (config->dont_use_pll)
10881079 cx24123_repeater_mode(state, 1, 0);
10891080
1090
- strlcpy(state->tuner_i2c_adapter.name, "CX24123 tuner I2C bus",
1081
+ strscpy(state->tuner_i2c_adapter.name, "CX24123 tuner I2C bus",
10911082 sizeof(state->tuner_i2c_adapter.name));
10921083 state->tuner_i2c_adapter.algo = &cx24123_tuner_i2c_algo;
10931084 state->tuner_i2c_adapter.algo_data = NULL;
....@@ -1105,7 +1096,7 @@
11051096
11061097 return NULL;
11071098 }
1108
-EXPORT_SYMBOL(cx24123_attach);
1099
+EXPORT_SYMBOL_GPL(cx24123_attach);
11091100
11101101 static const struct dvb_frontend_ops cx24123_ops = {
11111102 .delsys = { SYS_DVBS },