提交 1cbabf9c 编写于 作者: A Antti Palosaari 提交者: Mauro Carvalho Chehab

[media] af9035: remove one config parameter

We can use tuner ID instead of HW not supported flag.
Lesser code is better code.
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 2a79eefa
......@@ -615,7 +615,6 @@ static int af9035_read_mac_address(struct dvb_usb_device *d, u8 mac[6])
state->af9033_config[i].spec_inv = 1;
break;
default:
state->hw_not_supported = true;
warn("tuner ID=%02x not supported, please report!",
tmp);
};
......@@ -809,7 +808,8 @@ static int af9035_frontend_attach(struct dvb_usb_adapter *adap)
struct state *state = adap->dev->priv;
int ret;
if (state->hw_not_supported) {
if (!state->af9033_config[adap->id].tuner) {
/* unsupported tuner */
ret = -ENODEV;
goto err;
}
......
......@@ -54,7 +54,6 @@ struct usb_req {
struct state {
bool dual_mode;
bool hw_not_supported;
struct af9033_config af9033_config[2];
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册