| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * descriptions + helper functions for simple dvb plls. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * (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. |
|---|
| 15 | 6 | */ |
|---|
| 16 | 7 | |
|---|
| 17 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 841 | 832 | memcpy(&fe->ops.tuner_ops, &dvb_pll_tuner_ops, |
|---|
| 842 | 833 | sizeof(struct dvb_tuner_ops)); |
|---|
| 843 | 834 | |
|---|
| 844 | | - strncpy(fe->ops.tuner_ops.info.name, desc->name, |
|---|
| 835 | + strscpy(fe->ops.tuner_ops.info.name, desc->name, |
|---|
| 845 | 836 | sizeof(fe->ops.tuner_ops.info.name)); |
|---|
| 846 | 837 | |
|---|
| 847 | 838 | fe->ops.tuner_ops.info.frequency_min_hz = desc->min; |
|---|
| .. | .. |
|---|
| 875 | 866 | |
|---|
| 876 | 867 | return NULL; |
|---|
| 877 | 868 | } |
|---|
| 878 | | -EXPORT_SYMBOL(dvb_pll_attach); |
|---|
| 869 | +EXPORT_SYMBOL_GPL(dvb_pll_attach); |
|---|
| 879 | 870 | |
|---|
| 880 | 871 | |
|---|
| 881 | 872 | static int |
|---|