hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/dvb-frontends/dvb-pll.c
....@@ -1,17 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * descriptions + helper functions for simple dvb plls.
34 *
45 * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
156 */
167
178 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -841,7 +832,7 @@
841832 memcpy(&fe->ops.tuner_ops, &dvb_pll_tuner_ops,
842833 sizeof(struct dvb_tuner_ops));
843834
844
- strncpy(fe->ops.tuner_ops.info.name, desc->name,
835
+ strscpy(fe->ops.tuner_ops.info.name, desc->name,
845836 sizeof(fe->ops.tuner_ops.info.name));
846837
847838 fe->ops.tuner_ops.info.frequency_min_hz = desc->min;
....@@ -875,7 +866,7 @@
875866
876867 return NULL;
877868 }
878
-EXPORT_SYMBOL(dvb_pll_attach);
869
+EXPORT_SYMBOL_GPL(dvb_pll_attach);
879870
880871
881872 static int