hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/media/dvb-frontends/zl10039.c
....@@ -1,18 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for Zarlink ZL10039 DVB-S tuner
34 *
45 * Copyright 2007 Jan D. Louw <jd.louw@mweb.co.za>
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
- *
15
- * GNU General Public License for more details.
166 */
177
188 #include <linux/module.h>
....@@ -288,8 +278,9 @@
288278 state->id = state->id & 0x0f;
289279 switch (state->id) {
290280 case ID_ZL10039:
291
- strcpy(fe->ops.tuner_ops.info.name,
292
- "Zarlink ZL10039 DVB-S tuner");
281
+ strscpy(fe->ops.tuner_ops.info.name,
282
+ "Zarlink ZL10039 DVB-S tuner",
283
+ sizeof(fe->ops.tuner_ops.info.name));
293284 break;
294285 default:
295286 dprintk("Chip ID=%x does not match a known type\n", state->id);
....@@ -304,7 +295,7 @@
304295 kfree(state);
305296 return NULL;
306297 }
307
-EXPORT_SYMBOL(zl10039_attach);
298
+EXPORT_SYMBOL_GPL(zl10039_attach);
308299
309300 module_param(debug, int, 0644);
310301 MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off).");