media: dvb-frontends/stv0367: split SNR determination into functions
authorDaniel Scheller <d.scheller@gmx.net>
Wed, 21 Jun 2017 19:45:42 +0000 (16:45 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 24 Jun 2017 20:42:47 +0000 (17:42 -0300)
commitb138afda3ca0450bcdbe4dd743b1952ea591a331
tree9ca9a91853e74fee9c63830b1cc48853cd011389
parent4043eb2325f2e8b66ed9b6dd75cbd00420489de0
media: dvb-frontends/stv0367: split SNR determination into functions

The read_snr() functions currently do some magic to return relative scale
values when called. Split out register readouts into separate functions
so the functionality can be reused in some other way.

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