public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rene Herman <rene.herman@keyaccess.nl>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [TRIVIAL] move PP_MAJOR from ppdev.h to major.h
Date: Mon, 27 Feb 2006 00:09:20 +0100	[thread overview]
Message-ID: <44023520.8020009@keyaccess.nl> (raw)

[-- Attachment #1: Type: text/plain, Size: 275 bytes --]

Hi Andrew.

Is this okay? Today I wondered about /dev/parport<n> after not seeing 
anything in drivers/parport register char-major-99. Having PP_MAJOR in 
include/linux/major.h would've allowed me to more quickly determine that 
it was the ppdev driver driving these.

Rene


[-- Attachment #2: ppdev_cleanup.diff --]
[-- Type: text/plain, Size: 1409 bytes --]

Index: local/drivers/char/ppdev.c
===================================================================
--- local.orig/drivers/char/ppdev.c	2006-01-03 04:21:10.000000000 +0100
+++ local/drivers/char/ppdev.c	2006-02-26 20:41:04.000000000 +0100
@@ -65,10 +65,11 @@
 #include <linux/parport.h>
 #include <linux/ctype.h>
 #include <linux/poll.h>
-#include <asm/uaccess.h>
+#include <linux/major.h>
 #include <linux/ppdev.h>
 #include <linux/smp_lock.h>
 #include <linux/device.h>
+#include <asm/uaccess.h>
 
 #define PP_VERSION "ppdev: user-space parallel port driver"
 #define CHRDEV "ppdev"
Index: local/include/linux/major.h
===================================================================
--- local.orig/include/linux/major.h	2006-01-03 04:21:10.000000000 +0100
+++ local/include/linux/major.h	2006-02-26 20:40:00.000000000 +0100
@@ -113,6 +113,7 @@
 
 #define UBD_MAJOR		98
 
+#define PP_MAJOR		99
 #define JSFD_MAJOR		99
 
 #define PHONE_MAJOR		100
Index: local/include/linux/ppdev.h
===================================================================
--- local.orig/include/linux/ppdev.h	2006-01-03 04:21:10.000000000 +0100
+++ local/include/linux/ppdev.h	2006-02-26 20:39:04.000000000 +0100
@@ -14,8 +14,6 @@
  * Added PPGETMODES/PPGETMODE/PPGETPHASE, Fred Barnes <frmb2@ukc.ac.uk>, 03/01/2001
  */
 
-#define PP_MAJOR	99
-
 #define PP_IOCTL	'p'
 
 /* Set mode for read/write (e.g. IEEE1284_MODE_EPP) */

                 reply	other threads:[~2006-02-26 23:08 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=44023520.8020009@keyaccess.nl \
    --to=rene.herman@keyaccess.nl \
    --cc=akpm@osdl.org \
    --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