[media] dvb-frontends/stv0367: refactor defaults table handling
authorDaniel Scheller <d.scheller@gmx.net>
Wed, 29 Mar 2017 16:43:03 +0000 (13:43 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 12:19:58 +0000 (09:19 -0300)
commit41727cbb203cd6606a0ea835d867060f27d57737
tree302fcc1b99c23b57ed33af635babc6a5a88eb464
parentdf5a38e9131c2fbe46ef95d536d35191b774d433
[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>
drivers/media/dvb-frontends/stv0367.c
drivers/media/dvb-frontends/stv0367_regs.h