[media] cx231xx: use TRANSFER_TYPE enum for cleanup
authorDavid Dillow <dave@thedillows.org>
Mon, 18 Jun 2012 03:20:06 +0000 (00:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 04:45:43 +0000 (01:45 -0300)
commit460a4de77d3b8f82fce98a9ed10e10464f767f97
tree0cbdf5704aca8b6dc05870e2884a39d7ff53dcde
parentf244e6c308be3acc445719f0fd72b5fb182c0895
[media] cx231xx: use TRANSFER_TYPE enum for cleanup

Most calls to cx231xx_capture_start() already use the values from
TRANSFER_TYPE, but cx231xx_capture_start() and
cx231xx_initialize_stream_xfer() were hand coding the values.
Use the named values (81 is never passed in), and simplify
cx231xx_capture_start(), as the switch statements were identical and
pcb_config->config_num is a u8, so any non-zero config got the same
result.

Signed-off-by: David Dillow <dave@thedillows.org>
Cc: Sri Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-avcore.c