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

[media] af9035: make remote controller optional

Do not compile remote controller when RC-core is disabled by Kconfig.
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 b6215596
......@@ -1146,6 +1146,7 @@ static int af9035_init(struct dvb_usb_device *d)
return ret;
}
#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
static int af9035_rc_query(struct dvb_usb_device *d)
{
unsigned int key;
......@@ -1220,6 +1221,9 @@ static int af9035_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc)
return ret;
}
#else
#define af9035_get_rc_config NULL
#endif
/* interface 0 is used by DVB-T receiver and
interface 1 is for remote controller (HID) */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册