apm-emulation: move APM_MINOR_DEV to include/linux/miscdevice.h
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Thu, 15 Dec 2016 19:36:33 +0000 (20:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 20:46:41 +0000 (21:46 +0100)
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>
drivers/char/apm-emulation.c
include/linux/miscdevice.h

index dd9dfa15e9d13364b1ce2ea65de957bdd21a6ee4..1dfb9f8de1715a6afcfe2828138e678e28602da1 100644 (file)
 #include <linux/kthread.h>
 #include <linux/delay.h>
 
-
-/*
- * The apm_bios device is one of the misc char devices.
- * This is its minor number.
- */
-#define APM_MINOR_DEV  134
-
 /*
  * One option can be changed at boot time as follows:
  *     apm=on/off                      enable/disable APM
index ed30d5d713e3400944e6247a7079ee4840a1ae94..0590263c462ceeb71124b3e5339ea68756bbdef2 100644 (file)
@@ -22,6 +22,7 @@
 /*#define ADB_MOUSE_MINOR      10      FIXME OBSOLETE */
 #define WATCHDOG_MINOR         130     /* Watchdog timer     */
 #define TEMP_MINOR             131     /* Temperature Sensor */
+#define APM_MINOR_DEV          134
 #define RTC_MINOR              135
 #define EFI_RTC_MINOR          136     /* EFI Time services */
 #define VHCI_MINOR             137