commit | 947b38bb110c90e0bc93e7afe9ab6f007b6799a7 | [log] [tgz] |
---|---|---|
author | Hans Verkuil <hans.verkuil@cisco.com> | Thu Sep 04 13:26:52 2014 -0300 |
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | Mon Sep 08 16:40:16 2014 -0300 |
tree | ab0d4a0af53c7a308ac7d2d204cbaec920364b1d | |
parent | f1b6a735328b507810d2436891ee977fb8cd62d7 [diff] |
[media] tw68: simplify tw68_buffer_count The code to calculate the maximum number of buffers allowed in 4 MB is 1) wrong if PAGE_SIZE != 4096 and 2) unnecessarily complex. Fix and simplify the code. Reported-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>