]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (7701): pvrusb2: Centralize handling of simple FX2 commands
authorMike Isely <isely@pobox.com>
Fri, 28 Mar 2008 08:38:54 +0000 (05:38 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:47 +0000 (14:09 -0300)
commit1c9d10d4d2e791a9eacd9f919dec78c5bc6737e8
treea63ebc17d527109d3ab65cecd04bc03166a4245b
parent448cb48e6e2fcd3a948cc549c5c6ab7f84440a54
V4L/DVB (7701): pvrusb2: Centralize handling of simple FX2 commands

Numerous places in the driver need to issue simple commands to the FX2
microcontroller (e.g. only 1 or 2 bytes, no reply needed).  Previously
each place that did this, had to take lock, set up a central buffer,
and call the function to perform the handshake.  This change puts
these steps into a single spot.  This also has the effect of removing
the need to mess with the control lock from numerous places in the
code.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-hdw.c