| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Linux-DVB Driver for DiBcom's DiB9000 and demodulator-family. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 1020 | 1017 | if (address >= 1024 || !state->platform.risc.fw_is_running) |
|---|
| 1021 | 1018 | return -EINVAL; |
|---|
| 1022 | 1019 | |
|---|
| 1023 | | - /* dprintk( "APB access thru rd fw %d %x\n", address, attribute); */ |
|---|
| 1020 | + /* dprintk( "APB access through rd fw %d %x\n", address, attribute); */ |
|---|
| 1024 | 1021 | |
|---|
| 1025 | 1022 | mb[0] = (u16) address; |
|---|
| 1026 | 1023 | mb[1] = len / 2; |
|---|
| .. | .. |
|---|
| 1050 | 1047 | if (len > 18) |
|---|
| 1051 | 1048 | return -EINVAL; |
|---|
| 1052 | 1049 | |
|---|
| 1053 | | - /* dprintk( "APB access thru wr fw %d %x\n", address, attribute); */ |
|---|
| 1050 | + /* dprintk( "APB access through wr fw %d %x\n", address, attribute); */ |
|---|
| 1054 | 1051 | |
|---|
| 1055 | 1052 | mb[0] = (u16)address; |
|---|
| 1056 | 1053 | for (i = 0; i + 1 < len; i += 2) |
|---|
| .. | .. |
|---|
| 2521 | 2518 | dibx000_init_i2c_master(&st->i2c_master, DIB7000MC, st->i2c.i2c_adap, st->i2c.i2c_addr); |
|---|
| 2522 | 2519 | |
|---|
| 2523 | 2520 | 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)); |
|---|
| 2525 | 2523 | st->tuner_adap.algo = &dib9000_tuner_algo; |
|---|
| 2526 | 2524 | st->tuner_adap.algo_data = NULL; |
|---|
| 2527 | 2525 | i2c_set_adapdata(&st->tuner_adap, st); |
|---|
| .. | .. |
|---|
| 2529 | 2527 | goto error; |
|---|
| 2530 | 2528 | |
|---|
| 2531 | 2529 | 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)); |
|---|
| 2533 | 2532 | st->component_bus.algo = &dib9000_component_bus_algo; |
|---|
| 2534 | 2533 | st->component_bus.algo_data = NULL; |
|---|
| 2535 | 2534 | st->component_bus_speed = 340; |
|---|