Skip to content

Commit

Permalink
apm-emulation: move APM_MINOR_DEV to include/linux/miscdevice.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Corentin Labbe authored and Greg Kroah-Hartman committed Jan 10, 2017
1 parent 8681d5b commit 874bcd0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/char/apm-emulation.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@
#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
Expand Down
1 change: 1 addition & 0 deletions include/linux/miscdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 874bcd0

Please sign in to comment.