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>pull/1354/merge
parent
1ba0fb42aa
commit
d7f8d0758b
|
|
@ -15,8 +15,6 @@
|
||||||
#include <linux/uaccess.h>
|
#include <linux/uaccess.h>
|
||||||
#include <asm/eisa_eeprom.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)
|
static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin)
|
||||||
{
|
{
|
||||||
return fixed_size_llseek(file, offset, origin, HPEE_MAX_LENGTH);
|
return fixed_size_llseek(file, offset, origin, HPEE_MAX_LENGTH);
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@
|
||||||
#define UHID_MINOR 239
|
#define UHID_MINOR 239
|
||||||
#define USERIO_MINOR 240
|
#define USERIO_MINOR 240
|
||||||
#define VHOST_VSOCK_MINOR 241
|
#define VHOST_VSOCK_MINOR 241
|
||||||
|
#define EISA_EEPROM_MINOR 241
|
||||||
#define RFKILL_MINOR 242
|
#define RFKILL_MINOR 242
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue