summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/pt1
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-09-04 18:26:52 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-08 21:40:16 +0200
commit947b38bb110c90e0bc93e7afe9ab6f007b6799a7 (patch)
treeab0d4a0af53c7a308ac7d2d204cbaec920364b1d /drivers/media/pci/pt1
parent[media] cx23885: Add busy checks before changing formats (diff)
downloadlinux-947b38bb110c90e0bc93e7afe9ab6f007b6799a7.tar.xz
linux-947b38bb110c90e0bc93e7afe9ab6f007b6799a7.zip
[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>
Diffstat (limited to 'drivers/media/pci/pt1')
0 files changed, 0 insertions, 0 deletions