Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

char: misc: Register fixed minor EISA_EEPROM_MINOR in linux/miscdevice.h

Move fixed minor EISA_EEPROM_MINOR definition to linux/miscdevice.h.

Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250714-rfc_miscdev-v6-7-2ed949665bde@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zijun Hu and committed by
Greg Kroah-Hartman
d7f8d075 1ba0fb42

+1 -2
-2
drivers/parisc/eisa_eeprom.c
··· 15 15 #include <linux/uaccess.h> 16 16 #include <asm/eisa_eeprom.h> 17 17 18 - #define EISA_EEPROM_MINOR 241 19 - 20 18 static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin) 21 19 { 22 20 return fixed_size_llseek(file, offset, origin, HPEE_MAX_LENGTH);
+1
include/linux/miscdevice.h
··· 70 70 #define UHID_MINOR 239 71 71 #define USERIO_MINOR 240 72 72 #define VHOST_VSOCK_MINOR 241 73 + #define EISA_EEPROM_MINOR 241 73 74 #define RFKILL_MINOR 242 74 75 75 76 /*