V4L/DVB (12684): DVB: make DVB_MAX_ADAPTERS configurable

Support for more than 8 DVB devices is requested regularly so make it
a kconfig variable instead of a header define. Values in the range 4-32
are tested.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Janne Grunau
2009-09-01 19:15:39 -03:00
committed by Mauro Carvalho Chehab
parent f9089b0f9e
commit 4457ef1d61
2 changed files with 18 additions and 0 deletions

View File

@@ -30,7 +30,12 @@
#define DVB_MAJOR 212
#if defined(CONFIG_DVB_MAX_ADAPTERS) && CONFIG_DVB_MAX_ADAPTERS > 0
#define DVB_MAX_ADAPTERS CONFIG_DVB_MAX_ADAPTERS
#else
#warning invalid CONFIG_DVB_MAX_ADAPTERS value
#define DVB_MAX_ADAPTERS 8
#endif
#define DVB_UNSET (-1)