media: dvb_ca_en50221: Add block read/write functions
authorRalph Metzler <rjkm@metzlerbros.de>
Sun, 25 Jun 2017 21:37:07 +0000 (18:37 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Jun 2017 11:15:32 +0000 (08:15 -0300)
commitf894165cb57922361a8cbe339e29b8c78ad4036a
treef7ed69230ef0b39f038ba33f4d153a34141d7ad4
parent5dbddc99ec886b8382b0cfb9b9f52c830a344601
media: dvb_ca_en50221: Add block read/write functions

Some lower level drivers may work better when sending blocks of data
instead byte per byte. For this we need new function pointers in the
dvb_ca_en50221 protocol structure (read_data, write_data) and the protocol
needs to execute them, if they are defined.
Block data transmission is done in all states except LINKINIT.

Original code change by Ralph Metzler, modified by Jasmin Jessich and
Daniel Scheller to match Kernel code style.

Signed-off-by: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Jasmin Jessich <jasmin@anw.at>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-core/dvb_ca_en50221.c
drivers/media/dvb-core/dvb_ca_en50221.h