summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/stv0367_regs.h
diff options
context:
space:
mode:
authorDaniel Scheller <d.scheller@gmx.net>2017-03-29 19:43:03 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-20 15:19:58 +0300
commit41727cbb203cd6606a0ea835d867060f27d57737 (patch)
tree302fcc1b99c23b57ed33af635babc6a5a88eb464 /drivers/media/dvb-frontends/stv0367_regs.h
parentdf5a38e9131c2fbe46ef95d536d35191b774d433 (diff)
downloadlinux-41727cbb203cd6606a0ea835d867060f27d57737.tar.xz
[media] dvb-frontends/stv0367: refactor defaults table handling
Change defaults table writing so tables can be of dynamic length without having to keep track of their lengths by adding and evaluating an end marker (reg 0x0000), also move table writing to a dedicated function to remove code duplication. Additionally mark st_register tables const since they're used read-only. Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/stv0367_regs.h')
-rw-r--r--drivers/media/dvb-frontends/stv0367_regs.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/dvb-frontends/stv0367_regs.h b/drivers/media/dvb-frontends/stv0367_regs.h
index 1d1586221239..cc66d93c5a1f 100644
--- a/drivers/media/dvb-frontends/stv0367_regs.h
+++ b/drivers/media/dvb-frontends/stv0367_regs.h
@@ -2639,8 +2639,6 @@
#define R367TER_DEBUG_LT9 0xf405
#define F367TER_F_DEBUG_LT9 0xf40500ff
-#define STV0367TER_NBREGS 445
-
/* ID */
#define R367CAB_ID 0xf000
#define F367CAB_IDENTIFICATIONREGISTER 0xf00000ff
@@ -3605,6 +3603,4 @@
#define R367CAB_T_O_ID_3 0xf4d3
#define F367CAB_TS_ID_I_H 0xf4d300ff
-#define STV0367CAB_NBREGS 187
-
#endif