[media] vp702x: preallocate memory on device probe
authorFlorian Mickler <florian@mickler.org>
Mon, 21 Mar 2011 10:19:08 +0000 (07:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:28:05 +0000 (09:28 -0300)
commit1c6410f317c3e78409f0179283089034c77a6ad5
tree281a8ff04d5e6af29030572f78cb14a4447441b6
parent36f773e8e3f207136a6b903b71754593e0e1819c
[media] vp702x: preallocate memory on device probe

This sets up a buffer and a mutex protecting that buffer in
the struct vp702x_device_state.

The definition of struct vp702x_device_state is moved into the header
in order to use the buffer also in the frontend.

Signed-off-by: Florian Mickler <florian@mickler.org>
Cc: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/vp702x.c
drivers/media/dvb/dvb-usb/vp702x.h