[media] hackrf: switch to single function which configures everything
authorAntti Palosaari <crope@iki.fi>
Sat, 10 Oct 2015 16:51:05 +0000 (13:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 20 Oct 2015 17:53:49 +0000 (15:53 -0200)
commiteec20f0654a45c43b303a2f386c654c4171d9f6e
treea00ef09bb1ce2b60ab6decb6ac9f8301145255c4
parentb3ae29667e22921b8bd8ba84bf719a240f303aa2
[media] hackrf: switch to single function which configures everything

Implement single funtion, hackrf_set_params(), which handles all
needed settings. Controls and other IOCTLs are just wrappers to that
function. That way we can get easily better control what we could do
on different device states - sleeping, receiving, transmitting.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/hackrf/hackrf.c