.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for Zarlink ZL10039 DVB-S tuner |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
16 | 6 | */ |
---|
17 | 7 | |
---|
18 | 8 | #include <linux/module.h> |
---|
.. | .. |
---|
288 | 278 | state->id = state->id & 0x0f; |
---|
289 | 279 | switch (state->id) { |
---|
290 | 280 | 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)); |
---|
293 | 284 | break; |
---|
294 | 285 | default: |
---|
295 | 286 | dprintk("Chip ID=%x does not match a known type\n", state->id); |
---|
.. | .. |
---|
304 | 295 | kfree(state); |
---|
305 | 296 | return NULL; |
---|
306 | 297 | } |
---|
307 | | -EXPORT_SYMBOL(zl10039_attach); |
---|
| 298 | +EXPORT_SYMBOL_GPL(zl10039_attach); |
---|
308 | 299 | |
---|
309 | 300 | module_param(debug, int, 0644); |
---|
310 | 301 | MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off)."); |
---|