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

apm-emulation: move APM_MINOR_DEV to include/linux/miscdevice.h

This patch move the define for APM_MINOR_DEV to include/linux/miscdevice.h
It is better that all minor number definitions are in the same place.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Corentin Labbe and committed by
Greg Kroah-Hartman
874bcd00 8681d5b0

+1 -7
-7
drivers/char/apm-emulation.c
··· 31 31 #include <linux/kthread.h> 32 32 #include <linux/delay.h> 33 33 34 - 35 - /* 36 - * The apm_bios device is one of the misc char devices. 37 - * This is its minor number. 38 - */ 39 - #define APM_MINOR_DEV 134 40 - 41 34 /* 42 35 * One option can be changed at boot time as follows: 43 36 * apm=on/off enable/disable APM
+1
include/linux/miscdevice.h
··· 22 22 /*#define ADB_MOUSE_MINOR 10 FIXME OBSOLETE */ 23 23 #define WATCHDOG_MINOR 130 /* Watchdog timer */ 24 24 #define TEMP_MINOR 131 /* Temperature Sensor */ 25 + #define APM_MINOR_DEV 134 25 26 #define RTC_MINOR 135 26 27 #define EFI_RTC_MINOR 136 /* EFI Time services */ 27 28 #define VHCI_MINOR 137