]> git.baikalelectronics.ru Git - kernel.git/commit
media: dmxdev: Fix the logic that enables DMA mmap support
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 9 Feb 2018 15:44:49 +0000 (10:44 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 10:27:10 +0000 (05:27 -0500)
commit8b7d3146c0ef922e45f88d640f6234d08e99dcc3
tree29934a00c2b1c94786bcfb71a13d94a42dc3c8d0
parent240445846e509dcfba1f17cb7242630738fb4f4d
media: dmxdev: Fix the logic that enables DMA mmap support

Some conditions required for DVB mmap support to work are reversed.
Also, the logic is not too clear.

So, improve the logic, making it easier to be handled.

PS.: I'm pretty sure that I fixed it while testing, but, somehow,
the change got lost.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-core/dmxdev.c
include/media/dmxdev.h