video/fb: cleanup FB_MAJOR usage
Quoted 8 lines · Linux Kernel Mailing List
Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5bb49fcd501aa9fd3d321a22b7c01d9b0db7ab36 Commit: 5bb49fcd501aa9fd3d321a22b7c01d9b0db7ab36 Parent: cba603bf514c101bf48f6adf393c3d00ed457a57 Author: Philippe De Muyter <[email protected]> AuthorDate: Wed Jul 23 21:31:50 2008 -0700 Committer: Linus Torvalds <[email protected]> CommitDate: Thu Jul 24 10:47:41 2008 -0700
Quoted 6 lines
video/fb: cleanup
FB_MAJORusageCurrently,
linux/major.hdefines aGRAPHDEV_MAJOR(29) that nobody uses, andlinux/fb.hdefines the realFB_MAJOR(also 29), that onlyfbmem.cneeds. DropGRAPHDEV_MAJORfrommajor.h, moveFB_MAJORdefinition fromfb.htomajor.h, and fixfbmem.cto use major.h's definition.
<linux/fb.h> is exported to userspace, so this may affect userspace applications.
Quoted 40 lines
Signed-off-by Philippe De Muyter <[email protected]>Cc Krzysztof Helt <[email protected]>Cc "Antonino A. Daplas" <[email protected]>Signed-off-by Andrew Morton <[email protected]>Signed-off-by Linus Torvalds <[email protected]>--- drivers/video/fbmem.c | 1 + include/linux/fb.h | 1 - include/linux/major.h | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)drivers/video/fbmem.c +1
-0@@ -35,6 +35,7 @@#include <linux/device.h> #include <linux/efi.h> #include <linux/fb.h> +#include <linux/major.h> #include <asm/fb.h> include/linux/fb.h +0
-1@@ -8,7 +8,6 @@ struct dentry;/* Definitions of frame buffers */ -#define FB_MAJOR 29#define FB_MAX 32/* sufficient for now */ /* ioctls include/linux/major.h +0
-0
include/linux/major.h line 59
Quoted 8 lines
include/linux/major.h +1
-1@@ -53,7 +53,7 @@#define STL_SIOMEMMAJOR 28#define ACSI_MAJOR 28#define AZTECH_CDROM_MAJOR 29 -#define GRAPHDEV_MAJOR 29/* SparcLinux & Linux/68k /dev/fb */ +#define FB_MAJOR 29/* /dev/fb* framebuffers */ #define CM206_CDROM_MAJOR 32#define IDE2_MAJOR 33#define IDE3_MAJOR 34
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/