.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Abilis Systems Single DVB-T Receiver |
---|
3 | 4 | * Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com> |
---|
4 | 5 | * Copyright (C) 2010 Devin Heitmueller <dheitmueller@kernellabs.com> |
---|
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, or (at your option) |
---|
9 | | - * 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. |
---|
15 | 6 | */ |
---|
16 | 7 | |
---|
17 | 8 | #include <media/dvb_frontend.h> |
---|
.. | .. |
---|
299 | 290 | } |
---|
300 | 291 | |
---|
301 | 292 | static int as102_fe_get_tune_settings(struct dvb_frontend *fe, |
---|
302 | | - struct dvb_frontend_tune_settings *settings) { |
---|
| 293 | + struct dvb_frontend_tune_settings *settings) |
---|
| 294 | +{ |
---|
303 | 295 | |
---|
304 | 296 | settings->min_delay_ms = 1000; |
---|
305 | 297 | |
---|
.. | .. |
---|
467 | 459 | |
---|
468 | 460 | /* init frontend callback ops */ |
---|
469 | 461 | memcpy(&fe->ops, &as102_fe_ops, sizeof(struct dvb_frontend_ops)); |
---|
470 | | - strncpy(fe->ops.info.name, name, sizeof(fe->ops.info.name)); |
---|
| 462 | + strscpy(fe->ops.info.name, name, sizeof(fe->ops.info.name)); |
---|
471 | 463 | |
---|
472 | 464 | return fe; |
---|
473 | 465 | |
---|