diff options
Diffstat (limited to 'include/linux/miscdevice.h')
| -rw-r--r-- | include/linux/miscdevice.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h index c0fea6ca5076..7d0aa718499c 100644 --- a/include/linux/miscdevice.h +++ b/include/linux/miscdevice.h @@ -70,13 +70,19 @@ #define UHID_MINOR 239 #define USERIO_MINOR 240 #define VHOST_VSOCK_MINOR 241 +#define EISA_EEPROM_MINOR 241 #define RFKILL_MINOR 242 -#define MISC_DYNAMIC_MINOR 255 -struct device; -struct attribute_group; +/* + * Misc char device minor code space division related to below macro: + * + * < 255 : Fixed minor code + * == 255 : Indicator to request dynamic minor code + * > 255 : Dynamic minor code requested, 1048320 minor codes totally. + */ +#define MISC_DYNAMIC_MINOR 255 -struct miscdevice { +struct miscdevice { int minor; const char *name; const struct file_operations *fops; |
