From: Philippe De Muyter <phdm@macqel.be>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] video/fb : cleanup FB_MAJOR usage
Date: Thu, 3 Jul 2008 23:48:41 +0200 [thread overview]
Message-ID: <20080703214841.GA8189@frolo.macqel> (raw)
Currently, linux/major.h defines a GRAPHDEV_MAJOR (29) that nobody uses,
and linux/fb.h defines the real FB_MAJOR (also 29), that only fbmem.c needs.
Drop GRAPHDEV_MAJOR from major.h, move FB_MAJOR definition from fb.h to
major.h, and fix fbmem.c to use major.h's definition.
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
---
diff -r ced66ca0044f drivers/video/fbmem.c
--- a/drivers/video/fbmem.c Mon Jun 30 08:58:09 2008 -0700
+++ b/drivers/video/fbmem.c Thu Jul 3 23:31:57 2008 +0200
@@ -35,6 +35,7 @@
#include <linux/device.h>
#include <linux/efi.h>
#include <linux/fb.h>
+#include <linux/major.h>
#include <asm/fb.h>
diff -r ced66ca0044f include/linux/fb.h
--- a/include/linux/fb.h Mon Jun 30 08:58:09 2008 -0700
+++ b/include/linux/fb.h Thu Jul 3 23:31:57 2008 +0200
@@ -8,7 +8,6 @@ struct dentry;
/* Definitions of frame buffers */
-#define FB_MAJOR 29
#define FB_MAX 32 /* sufficient for now */
/* ioctls
diff -r ced66ca0044f include/linux/major.h
--- a/include/linux/major.h Mon Jun 30 08:58:09 2008 -0700
+++ b/include/linux/major.h Thu Jul 3 23:31:57 2008 +0200
@@ -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
reply other threads:[~2008-07-03 21:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080703214841.GA8189@frolo.macqel \
--to=phdm@macqel.be \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®