hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/dvb-frontends/dib9000.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Linux-DVB Driver for DiBcom's DiB9000 and demodulator-family.
34 *
45 * Copyright (C) 2005-10 DiBcom (http://www.dibcom.fr/)
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License as
8
- * published by the Free Software Foundation, version 2.
96 */
107
118 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -1020,7 +1017,7 @@
10201017 if (address >= 1024 || !state->platform.risc.fw_is_running)
10211018 return -EINVAL;
10221019
1023
- /* dprintk( "APB access thru rd fw %d %x\n", address, attribute); */
1020
+ /* dprintk( "APB access through rd fw %d %x\n", address, attribute); */
10241021
10251022 mb[0] = (u16) address;
10261023 mb[1] = len / 2;
....@@ -1050,7 +1047,7 @@
10501047 if (len > 18)
10511048 return -EINVAL;
10521049
1053
- /* dprintk( "APB access thru wr fw %d %x\n", address, attribute); */
1050
+ /* dprintk( "APB access through wr fw %d %x\n", address, attribute); */
10541051
10551052 mb[0] = (u16)address;
10561053 for (i = 0; i + 1 < len; i += 2)
....@@ -2521,7 +2518,8 @@
25212518 dibx000_init_i2c_master(&st->i2c_master, DIB7000MC, st->i2c.i2c_adap, st->i2c.i2c_addr);
25222519
25232520 st->tuner_adap.dev.parent = i2c_adap->dev.parent;
2524
- strncpy(st->tuner_adap.name, "DIB9000_FW TUNER ACCESS", sizeof(st->tuner_adap.name));
2521
+ strscpy(st->tuner_adap.name, "DIB9000_FW TUNER ACCESS",
2522
+ sizeof(st->tuner_adap.name));
25252523 st->tuner_adap.algo = &dib9000_tuner_algo;
25262524 st->tuner_adap.algo_data = NULL;
25272525 i2c_set_adapdata(&st->tuner_adap, st);
....@@ -2529,7 +2527,8 @@
25292527 goto error;
25302528
25312529 st->component_bus.dev.parent = i2c_adap->dev.parent;
2532
- strncpy(st->component_bus.name, "DIB9000_FW COMPONENT BUS ACCESS", sizeof(st->component_bus.name));
2530
+ strscpy(st->component_bus.name, "DIB9000_FW COMPONENT BUS ACCESS",
2531
+ sizeof(st->component_bus.name));
25332532 st->component_bus.algo = &dib9000_component_bus_algo;
25342533 st->component_bus.algo_data = NULL;
25352534 st->component_bus_speed = 340;
....@@ -2547,7 +2546,7 @@
25472546 kfree(st);
25482547 return NULL;
25492548 }
2550
-EXPORT_SYMBOL(dib9000_attach);
2549
+EXPORT_SYMBOL_GPL(dib9000_attach);
25512550
25522551 static const struct dvb_frontend_ops dib9000_ops = {
25532552 .delsys = { SYS_DVBT },