staging: bcm2835-camera: Remove V4L2/MMAL buffer remapping
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Thu, 10 May 2018 19:42:11 +0000 (12:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 May 2018 10:02:05 +0000 (12:02 +0200)
commit9384167070713570a25f854d641979e94163c425
tree43b22cb2c0eede7329f99a86f10910b2ba53ef1e
parent7cc31d57f399b00f96ce295d5b86426b95d9076f
staging: bcm2835-camera: Remove V4L2/MMAL buffer remapping

The MMAL and V4L2 buffers had been disassociated, and linked on
demand.  Seeing as both are finite and low in number, and we now have
the same number of each, link them for the duration.  This removes the
complexity of maintaining lists as the struct mmal_buffer context
comes back from the VPU, so we can directly link back to the relevant
V4L2 buffer.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c