aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/flat.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-09-04 12:26:52 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-08 15:40:16 -0400
commit947b38bb110c90e0bc93e7afe9ab6f007b6799a7 (patch)
treeab0d4a0af53c7a308ac7d2d204cbaec920364b1d /include/uapi/linux/flat.h
parentf1b6a735328b507810d2436891ee977fb8cd62d7 (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>
Diffstat (limited to 'include/uapi/linux/flat.h')
0 files changed, 0 insertions, 0 deletions