media: vidtv: cleanup the logic which estimates buffer size
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 17 Sep 2020 09:03:37 +0000 (11:03 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 17 Sep 2020 10:03:18 +0000 (12:03 +0200)
commitad458524b3fa2cef0b322984591bbdfd527367c3
treebd82cbb9d15a6901b18b2f826165ce2661c2f9d1
parent37b288f54bb9acb42bf384d92f7c95d8bad45ca8
media: vidtv: cleanup the logic which estimates buffer size

There's no need to use u64 over there. In a matter of fact,
the div is not even needed, as it is multiplying by 1000 and
dividing by 1000.

So, simplify the logic.

While here, constrain the buffer size to a certain range
(between the current value and 10 times it)

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vidtv/vidtv_bridge.c