| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for |
|---|
| 3 | 4 | * Samsung S5H1420 and |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (C) 2005 Andrew de Quincey <adq_dvb@lidskialf.net> |
|---|
| 7 | 8 | * Copyright (C) 2005-8 Patrick Boettcher <pb@linuxtv.org> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 11 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 | | - * (at your option) any later version. |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | | - * |
|---|
| 18 | | - * GNU General Public License for more details. |
|---|
| 19 | 9 | */ |
|---|
| 20 | 10 | |
|---|
| 21 | 11 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 912 | 902 | state->frontend.demodulator_priv = state; |
|---|
| 913 | 903 | |
|---|
| 914 | 904 | /* create tuner i2c adapter */ |
|---|
| 915 | | - strlcpy(state->tuner_i2c_adapter.name, "S5H1420-PN1010 tuner I2C bus", |
|---|
| 905 | + strscpy(state->tuner_i2c_adapter.name, "S5H1420-PN1010 tuner I2C bus", |
|---|
| 916 | 906 | sizeof(state->tuner_i2c_adapter.name)); |
|---|
| 917 | 907 | state->tuner_i2c_adapter.algo = &s5h1420_tuner_i2c_algo; |
|---|
| 918 | 908 | state->tuner_i2c_adapter.algo_data = NULL; |
|---|
| .. | .. |
|---|
| 928 | 918 | kfree(state); |
|---|
| 929 | 919 | return NULL; |
|---|
| 930 | 920 | } |
|---|
| 931 | | -EXPORT_SYMBOL(s5h1420_attach); |
|---|
| 921 | +EXPORT_SYMBOL_GPL(s5h1420_attach); |
|---|
| 932 | 922 | |
|---|
| 933 | 923 | static const struct dvb_frontend_ops s5h1420_ops = { |
|---|
| 934 | 924 | .delsys = { SYS_DVBS }, |
|---|