media: mb86a20s: make the bit rate estimation function more generic
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 Oct 2019 11:42:47 +0000 (08:42 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Oct 2019 15:24:03 +0000 (12:24 -0300)
commit75564e3a5016651f1c7f8eec63b557e24d6d1e17
tree4925c3265ff660c4de03a539386948846cceed89
parentca8f245f284eeffa56f3b7a5eb6fc503159ee028
media: mb86a20s: make the bit rate estimation function more generic

While 99% of the implementation of the bitrate estimation
routine for ISDB-T is generic, the current approach mangles it
with some mb86a20s-specific thing.

Split the calculus from the specific stuff, in order to make
easier to use the same approach on other drivers requiring
a similar formula.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
drivers/media/dvb-frontends/mb86a20s.c