mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
[media] af9035: make remote controller optional
Do not compile remote controller when RC-core is disabled by Kconfig. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
b6215596b5
commit
eed5670a31
@ -1146,6 +1146,7 @@ err:
|
||||
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 @@ err:
|
||||
|
||||
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) */
|
||||
|
Loading…
Reference in New Issue
Block a user