hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/media/dvb-frontends/dib7000m.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Linux-DVB Driver for DiBcom's DiB7000M and
34 * first generation DiB7000P-demodulator-family.
45 *
56 * Copyright (C) 2005-7 DiBcom (http://www.dibcom.fr/)
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License as
9
- * published by the Free Software Foundation, version 2.
107 */
118
129 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -369,7 +366,7 @@
369366 {
370367
371368 /* internal */
372
-// dib7000m_write_word(state, 928, (3 << 14) | (1 << 12) | (524 << 0)); // sampling clock of the SAD is writting in set_bandwidth
369
+// dib7000m_write_word(state, 928, (3 << 14) | (1 << 12) | (524 << 0)); // sampling clock of the SAD is writing in set_bandwidth
373370 dib7000m_write_word(state, 929, (0 << 1) | (0 << 0));
374371 dib7000m_write_word(state, 930, 776); // 0.625*3.3 / 4096
375372
....@@ -811,7 +808,7 @@
811808
812809 dib7000m_restart_agc(state);
813810
814
- dprintk("SPLIT %p: %hd\n", demod, agc_split);
811
+ dprintk("SPLIT %p: %u\n", demod, agc_split);
815812
816813 (*agc_state)++;
817814 ret = 5;
....@@ -928,7 +925,7 @@
928925 }
929926 state->div_sync_wait = (value * 3) / 2 + 32; // add 50% SFN margin + compensate for one DVSY-fifo TODO
930927
931
- /* deactive the possibility of diversity reception if extended interleave - not for 7000MC */
928
+ /* deactivate the possibility of diversity reception if extended interleave - not for 7000MC */
932929 /* P_dvsy_sync_mode = 0, P_dvsy_sync_enable=1, P_dvcb_comb_mode=2 */
933930 if (1 == 1 || state->revision > 0x4000)
934931 state->div_force_off = 0;
....@@ -1437,7 +1434,7 @@
14371434 kfree(st);
14381435 return NULL;
14391436 }
1440
-EXPORT_SYMBOL(dib7000m_attach);
1437
+EXPORT_SYMBOL_GPL(dib7000m_attach);
14411438
14421439 static const struct dvb_frontend_ops dib7000m_ops = {
14431440 .delsys = { SYS_DVBT },