History

misc: move FLASH_MINOR into miscdevice.h and fix conflicts

FLASH_MINOR is used in both drivers/char/nwflash.c and drivers/sbus/char/flash.c with conflict minor numbers. Move all the definitions of FLASH_MINOR into miscdevice.h. Rename FLASH_MINOR for drivers/char/nwflash.c to NWFLASH_MINOR and FLASH_MINOR for drivers/sbus/char/flash.c to SBUS_FLASH_MINOR.

Zhenzhong Duan committed 6 years ago

Commit 2668dba1 parent 6ce6ae74 files · +4 −5Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/miscdevice.h+2−0
@@ -30,12 +30,14 @@ · 29 unmodified lines
3030 #define SUN_OPENPROM_MINOR 139
3131 #define DMAPI_MINOR 140 /* unused */
3232 #define NVRAM_MINOR 144
33+#define SBUS_FLASH_MINOR 152
3334 #define SGI_MMTIMER 153
3435 #define PMU_MINOR 154
3536 #define STORE_QUEUE_MINOR 155 /* unused */
3637 #define LCD_MINOR 156
3738 #define AC_MINOR 157
3839 #define BUTTON_MINOR 158 /* Major 10, Minor 158, /dev/nwbutton */
40+#define NWFLASH_MINOR 160 /* MAJOR is 10 - miscdevice */
3941 #define ENVCTRL_MINOR 162
4042 #define I2O_MINOR 166
4143 #define UCTRL_MINOR 174

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t