Commit b6215596 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] af9015: make remote controller optional

Do not compile remote controller when RC-core is disabled by Kconfig.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d5c62090
......@@ -1156,6 +1156,7 @@ static int af9015_init(struct dvb_usb_device *d)
return ret;
}
#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
struct af9015_rc_setup {
unsigned int id;
char *rc_codes;
......@@ -1312,6 +1313,9 @@ static int af9015_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc)
return 0;
}
#else
#define af9015_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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment