[media] radio-si470x: Always use interrupt to wait for tune/seek completion
authorHans de Goede <hdegoede@redhat.com>
Thu, 14 Jun 2012 12:43:12 +0000 (09:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 21:11:28 +0000 (18:11 -0300)
commit779471110c6f0f7f7c223fc696170ec750ac3531
tree3c969ef4c615a52f305d55f18405e7f9d1542cea
parent86ef3f78b8bae808f41f74c506762ac345fdf893
[media] radio-si470x: Always use interrupt to wait for tune/seek completion

Since USB receives STATUS_RSSI updates through the interrupt endpoint,
there is no need to poll with USB, so get rid of the polling.

Note this also changes the order in which the probing of USB devices is done,
to avoid si470x_set_chan getting called before the interrupt endpoint is being
monitored.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/si470x/radio-si470x-common.c
drivers/media/radio/si470x/radio-si470x-i2c.c
drivers/media/radio/si470x/radio-si470x-usb.c
drivers/media/radio/si470x/radio-si470x.h