projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5c6209
)
[media] af9015: make remote controller optional
author
Antti Palosaari
<crope@iki.fi>
Sun, 9 Dec 2012 23:15:47 +0000
(20:15 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 6 Jan 2013 12:16:59 +0000
(10:16 -0200)
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>
drivers/media/usb/dvb-usb-v2/af9015.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/dvb-usb-v2/af9015.c
b/drivers/media/usb/dvb-usb-v2/af9015.c
index 943d93423705a0e1c5d404db966219ff528ebb15..51505d198f447f510041abf77aeab8a27000001f 100644
(file)
--- a/
drivers/media/usb/dvb-usb-v2/af9015.c
+++ b/
drivers/media/usb/dvb-usb-v2/af9015.c
@@
-1156,6
+1156,7
@@
error:
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) */