summaryrefslogtreecommitdiff
path: root/include/linux/brlvger.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2002-04-25 01:13:02 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2002-04-25 01:13:02 -0700
commit6efe5cc98e07089e08d0db6d9e61878dfcf93316 (patch)
tree60f0c567974f1257af587f358fc86e19e9da9473 /include/linux/brlvger.h
parent96b06627b24f9500a54698fe323dd2203bef0278 (diff)
added support for USB_DYNAMIC_MINORS to the usb drivers that can use it.
Diffstat (limited to 'include/linux/brlvger.h')
-rw-r--r--include/linux/brlvger.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/brlvger.h b/include/linux/brlvger.h
index eb5ef8c3da37..2a9b77ba4c1e 100644
--- a/include/linux/brlvger.h
+++ b/include/linux/brlvger.h
@@ -30,11 +30,16 @@
#define BRLVGER_DISPLAY_OFF 3
#define BRLVGER_BUZZ 4
+#ifdef CONFIG_USB_DYNAMIC_MINORS
+#define MAX_NR_BRLVGER_DEVS 256
+#define BRLVGER_MINOR 0
+#else
/* Number of supported devices, and range of covered minors */
#define MAX_NR_BRLVGER_DEVS 4
/* Base minor for the char devices */
#define BRLVGER_MINOR 128
+#endif
/* Size of some fields */
#define BRLVGER_HWVER_SIZE 2