[3/3] TBS USB drivers (DVB-S/S2) - enable driver lock led code
Commit Message
[Please CC me on replies, I'm not subscribed]
The lock led code being enabled is based on GPLv2 code taken from:
https://bitbucket.org/CrazyCat/linux-tbs-drivers/
Just having to look at a device to get a visual lock notification by a
led is a nice feature.
Signed-off-by: Andreas Steinmetz <ast@domdv.de>
@@ -348,8 +348,6 @@ static int tbsusb_set_voltage(struct dvb
voltage == SEC_VOLTAGE_18 ? command_18v : command_13v);
}
-#ifdef TBS_LOCKLED
-
static void tbsusb_led_ctrl(struct dvb_frontend *fe, int onoff)
{
static u8 led_off[2] = {0x05, 0x00};
@@ -358,8 +356,6 @@ static void tbsusb_led_ctrl(struct dvb_f
tbsusb_set_pin(fe, onoff ? led_on : led_off);
}
-#endif
-
static int tbsusb_i2c_transfer(struct i2c_adapter *adap,
struct i2c_msg msg[], int num)
{
@@ -766,9 +762,7 @@ static const struct stv090x_config stv09
.tuner_set_bandwidth = stb6100_set_bandwidth,
.tuner_get_bandwidth = stb6100_get_bandwidth,
-#ifdef TBS_LOCKLED
.set_lock_led = tbsusb_led_ctrl,
-#endif
};
static const struct stv090x_config stv0900_config = {
@@ -790,9 +784,7 @@ static const struct stv090x_config stv09
.tuner_set_bandwidth = stb6100_set_bandwidth,
.tuner_get_bandwidth = stb6100_get_bandwidth,
-#ifdef TBS_LOCKLED
.set_lock_led = tbsusb_led_ctrl,
-#endif
};
static const struct tda10071_config tda10071_config = {
@@ -803,24 +795,18 @@ static const struct tda10071_config tda1
.spec_inv = 0,
.xtal = 40444000, /* 40.444 MHz */
.pll_multiplier = 20,
-#ifdef TBS_LOCKLED
.set_lock_led = tbsusb_led_ctrl,
-#endif
};
static const struct cx24116_config cx24116_config = {
.demod_address = 0x55,
.mpg_clk_pos_pol = 0x01,
-#ifdef TBS_LOCKLED
.set_lock_led = tbsusb_led_ctrl,
-#endif
};
static const struct stv0288_config stv0288_config = {
.demod_address = 0x68,
-#ifdef TBS_LOCKLED
.set_lock_led = tbsusb_led_ctrl,
-#endif
};
static int tbsusb_frontend_attach(struct dvb_usb_adapter *d)