diff options
| author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-09-04 12:26:52 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-08 15:40:16 -0400 |
| commit | 947b38bb110c90e0bc93e7afe9ab6f007b6799a7 (patch) | |
| tree | ab0d4a0af53c7a308ac7d2d204cbaec920364b1d /include/uapi/linux/flat.h | |
| 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>
Diffstat (limited to 'include/uapi/linux/flat.h')
0 files changed, 0 insertions, 0 deletions
