[media] hackrf: move RF gain ctrl enable behind module parameter
authorAntti Palosaari <crope@iki.fi>
Fri, 23 Oct 2015 22:01:31 +0000 (20:01 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 18 Dec 2015 17:25:29 +0000 (15:25 -0200)
commitd47fa5315cca0c7c06b97abfbd77859d5296be2c
tree169ae069a33477539096057ab36359b3b8d0b11c
parenteb35cf47c386fa2088580ff4f450abe8a6f9402e
[media] hackrf: move RF gain ctrl enable behind module parameter

Used Avago MGA-81563 RF amplifier could be destroyed pretty easily
with too strong signal or transmitting to bad antenna.
Add module parameter 'enable_rf_gain_ctrl' which allows enabling
RF gain control - otherwise, default without the module parameter,
RF gain control is set to 'grabbed' state which prevents setting
value to the control.

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