Commit cedda370 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

[media] rtl28xxu: 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 0c87c66a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1125,7 +1125,7 @@ err:
	return ret;
}


#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
static int rtl2831u_rc_query(struct dvb_usb_device *d)
{
	int ret, i;
@@ -1208,7 +1208,11 @@ static int rtl2831u_get_rc_config(struct dvb_usb_device *d,

	return 0;
}
#else
	#define rtl2831u_get_rc_config NULL
#endif

#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
static int rtl2832u_rc_query(struct dvb_usb_device *d)
{
	int ret, i;
@@ -1280,6 +1284,9 @@ static int rtl2832u_get_rc_config(struct dvb_usb_device *d,

	return 0;
}
#else
	#define rtl2832u_get_rc_config NULL
#endif

static const struct dvb_usb_device_properties rtl2831u_props = {
	.driver_name = KBUILD_MODNAME,