| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Linux-DVB Driver for DiBcom's DiB8000 chip (ISDB-T). |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2009 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 |
|---|
| .. | .. |
|---|
| 564 | 561 | dib8000_write_word(state, 1925, reg | |
|---|
| 565 | 562 | (1<<4) | (1<<2)); |
|---|
| 566 | 563 | |
|---|
| 567 | | - /* read acces to make it works... strange ... */ |
|---|
| 564 | + /* read access to make it works... strange ... */ |
|---|
| 568 | 565 | reg = dib8000_read_word(state, 1925); |
|---|
| 569 | 566 | msleep(20); |
|---|
| 570 | 567 | /* en_slowAdc = 1 & reset_sladc = 0 */ |
|---|
| .. | .. |
|---|
| 1091 | 1088 | |
|---|
| 1092 | 1089 | if ((state->revision != 0x8090) && |
|---|
| 1093 | 1090 | (dib8000_set_output_mode(fe, OUTMODE_HIGH_Z) != 0)) |
|---|
| 1094 | | - dprintk("OUTPUT_MODE could not be resetted.\n"); |
|---|
| 1091 | + dprintk("OUTPUT_MODE could not be reset.\n"); |
|---|
| 1095 | 1092 | |
|---|
| 1096 | 1093 | state->current_agc = NULL; |
|---|
| 1097 | 1094 | |
|---|
| .. | .. |
|---|
| 1867 | 1864 | } |
|---|
| 1868 | 1865 | } |
|---|
| 1869 | 1866 | |
|---|
| 1870 | | - if (apb_address != 0) /* R/W acces via APB */ |
|---|
| 1867 | + if (apb_address != 0) /* R/W access via APB */ |
|---|
| 1871 | 1868 | return dib8096p_rw_on_apb(i2c_adap, msg, num, apb_address); |
|---|
| 1872 | 1869 | else /* R/W access via SERPAR */ |
|---|
| 1873 | 1870 | return dib8096p_tuner_rw_serpar(i2c_adap, msg, num); |
|---|
| .. | .. |
|---|
| 3104 | 3101 | state->autosearch_state = AS_DONE; |
|---|
| 3105 | 3102 | *tune_state = CT_DEMOD_STOP; /* else we are done here */ |
|---|
| 3106 | 3103 | break; |
|---|
| 3107 | | - case 2: /* Succes */ |
|---|
| 3104 | + case 2: /* Success */ |
|---|
| 3108 | 3105 | state->status = FE_STATUS_FFT_SUCCESS; /* signal to the upper layer, that there was a channel found and the parameters can be read */ |
|---|
| 3109 | 3106 | *tune_state = CT_DEMOD_STEP_3; |
|---|
| 3110 | 3107 | if (state->autosearch_state == AS_SEARCHING_GUARD) |
|---|
| .. | .. |
|---|
| 3215 | 3212 | |
|---|
| 3216 | 3213 | case CT_DEMOD_STEP_6: /* (36) if there is an input (diversity) */ |
|---|
| 3217 | 3214 | if ((state->fe[1] != NULL) && (state->output_mode != OUTMODE_DIVERSITY)) { |
|---|
| 3218 | | - /* if there is a diversity fe in input and this fe is has not already failled : wait here until this this fe has succedeed or failled */ |
|---|
| 3215 | + /* if there is a diversity fe in input and this fe is has not already failed : wait here until this this fe has succedeed or failed */ |
|---|
| 3219 | 3216 | if (dib8000_get_status(state->fe[1]) <= FE_STATUS_STD_SUCCESS) /* Something is locked on the input fe */ |
|---|
| 3220 | 3217 | *tune_state = CT_DEMOD_STEP_8; /* go for mpeg */ |
|---|
| 3221 | | - else if (dib8000_get_status(state->fe[1]) >= FE_STATUS_TUNE_TIME_TOO_SHORT) { /* fe in input failled also, break the current one */ |
|---|
| 3218 | + else if (dib8000_get_status(state->fe[1]) >= FE_STATUS_TUNE_TIME_TOO_SHORT) { /* fe in input failed also, break the current one */ |
|---|
| 3222 | 3219 | *tune_state = CT_DEMOD_STOP; /* else we are done here ; step 8 will close the loops and exit */ |
|---|
| 3223 | 3220 | dib8000_viterbi_state(state, 1); /* start viterbi chandec */ |
|---|
| 3224 | 3221 | dib8000_set_isdbt_loop_params(state, LOOP_TUNE_2); |
|---|
| .. | .. |
|---|
| 4484 | 4481 | dibx000_init_i2c_master(&state->i2c_master, DIB8000, state->i2c.adap, state->i2c.addr); |
|---|
| 4485 | 4482 | |
|---|
| 4486 | 4483 | /* init 8096p tuner adapter */ |
|---|
| 4487 | | - strncpy(state->dib8096p_tuner_adap.name, "DiB8096P tuner interface", |
|---|
| 4488 | | - sizeof(state->dib8096p_tuner_adap.name)); |
|---|
| 4484 | + strscpy(state->dib8096p_tuner_adap.name, "DiB8096P tuner interface", |
|---|
| 4485 | + sizeof(state->dib8096p_tuner_adap.name)); |
|---|
| 4489 | 4486 | state->dib8096p_tuner_adap.algo = &dib8096p_tuner_xfer_algo; |
|---|
| 4490 | 4487 | state->dib8096p_tuner_adap.algo_data = NULL; |
|---|
| 4491 | 4488 | state->dib8096p_tuner_adap.dev.parent = state->i2c.adap->dev.parent; |
|---|
| .. | .. |
|---|
| 4530 | 4527 | |
|---|
| 4531 | 4528 | return ops; |
|---|
| 4532 | 4529 | } |
|---|
| 4533 | | -EXPORT_SYMBOL(dib8000_attach); |
|---|
| 4530 | +EXPORT_SYMBOL_GPL(dib8000_attach); |
|---|
| 4534 | 4531 | |
|---|
| 4535 | 4532 | MODULE_AUTHOR("Olivier Grenie <Olivier.Grenie@parrot.com, Patrick Boettcher <patrick.boettcher@posteo.de>"); |
|---|
| 4536 | 4533 | MODULE_DESCRIPTION("Driver for the DiBcom 8000 ISDB-T demodulator"); |
|---|