linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Adam J. Richter" <adam@yggdrasil.com>
To: perex@suse.cz
Cc: linux-kernel@vger.kernel.org
Subject: Patch(?): linux-2.4.0-test11-pre5 ISAPNP_DEVICE simplification
Date: Thu, 16 Nov 2000 02:24:51 -0800	[thread overview]
Message-ID: <200011161024.CAA01591@adam.yggdrasil.com> (raw)


	I think the definition of ISAPNP_DEVICE in
linux-2.4.0-test11-pre5/include/linux/isapnp.h is unnecessarily complex.
Here is a proposed patch.

Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America
fax +1 408 261-6631      "Free Software For The Rest Of Us."


--- linux/include/linux/isapnp.h.orig	Thu Nov 16 02:20:14 2000
+++ linux/include/linux/isapnp.h	Thu Nov 16 02:20:33 2000
@@ -42,10 +42,8 @@
 #define ISAPNP_VENDOR(a,b,c)	(((((a)-'A'+1)&0x3f)<<2)|\
 				((((b)-'A'+1)&0x18)>>3)|((((b)-'A'+1)&7)<<13)|\
 				((((c)-'A'+1)&0x1f)<<8))
-#define ISAPNP_DEVICE(x)	((((x)&0xf000)>>8)|\
-				 (((x)&0x0f00)>>8)|\
-				 (((x)&0x00f0)<<8)|\
-				 (((x)&0x000f)<<8))
+#define ISAPNP_DEVICE(x)	((((x)&0xff00)>>8)|\
+				 (((x)&0x00ff)<<8))
 #define ISAPNP_FUNCTION(x)	ISAPNP_DEVICE(x)
 
 /*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

                 reply	other threads:[~2000-11-16 11:30 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=200011161024.CAA01591@adam.yggdrasil.com \
    --to=adam@yggdrasil.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    /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;
as well as URLs for NNTP newsgroup(s).