]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
char: misc: Register fixed minor EISA_EEPROM_MINOR in linux/miscdevice.h
authorZijun Hu <zijun.hu@oss.qualcomm.com>
Mon, 14 Jul 2025 15:34:18 +0000 (23:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Aug 2025 10:41:18 +0000 (12:41 +0200)
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>
drivers/parisc/eisa_eeprom.c
include/linux/miscdevice.h

index 443b15422fc179c7379082bb165ea2bb80785fb3..601cbb22574fd64b0c6be568442d5064d38a2c20 100644 (file)
@@ -15,8 +15,6 @@
 #include <linux/uaccess.h>
 #include <asm/eisa_eeprom.h>
 
-#define        EISA_EEPROM_MINOR 241
-
 static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin)
 {
        return fixed_size_llseek(file, offset, origin, HPEE_MAX_LENGTH);
index 565b88efeb23d02b7d91df1cd7df4bdcf2898224..7d0aa718499cc1867790e98eb6b84c1673091905 100644 (file)
@@ -70,6 +70,7 @@
 #define UHID_MINOR             239
 #define USERIO_MINOR           240
 #define VHOST_VSOCK_MINOR      241
+#define EISA_EEPROM_MINOR      241
 #define RFKILL_MINOR           242
 
 /*