linux_dsm_epyc7002/drivers/media/pci/tw68
Hans Verkuil 947b38bb11 [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>
2014-09-08 16:40:16 -03:00
..
Kconfig [media] tw68: refactor and cleanup the tw68 driver 2014-09-04 11:30:53 -03:00
Makefile [media] tw68: refactor and cleanup the tw68 driver 2014-09-04 11:30:53 -03:00
tw68-core.c [media] tw68: make tw68_pci_tbl static and constify 2014-09-04 11:31:58 -03:00
tw68-reg.h [media] tw68: refactor and cleanup the tw68 driver 2014-09-04 11:30:53 -03:00
tw68-risc.c [media] tw68: refactor and cleanup the tw68 driver 2014-09-04 11:30:53 -03:00
tw68-video.c [media] tw68: simplify tw68_buffer_count 2014-09-08 16:40:16 -03:00
tw68.h [media] tw68: refactor and cleanup the tw68 driver 2014-09-04 11:30:53 -03:00