Beech LCD patch

2 messages, 2 authors, 2002-08-12 · open the first message on its own page

Beech LCD patch

From: David Gibson <hidden>
Date: 2002-08-12 00:42:04

Could somebody please commit the following patch to
linuxppc_2_4_devel.  It fixes a bug in the Beech/405LP LCD driver.
I'd commit it myself, except me doing a push seems to break the tree
at the moment.

diff -ruN linux.orig/drivers/video/ibmlcdfb.c linux/drivers/video/ibmlcdfb.c
--- linux.orig/drivers/video/ibmlcdfb.c	Fri Aug  9 19:16:04 2002
+++ linux/drivers/video/ibmlcdfb.c	Fri Aug  9 19:15:51 2002
@@ -1218,7 +1218,8 @@
 	int ncolors;
 	const struct ibmlcdfb_info *info = (struct ibmlcdfb_info *) inf;

-	ncolors = 1 << bpp_from_par(info->gen.info.par);
+	ncolors = bpp_from_par(info->gen.info.par);
+
 	if (regno >= ncolors)
 		return -EINVAL;
@@ -1249,7 +1250,8 @@
 	int ncolors;
 	struct ibmlcdfb_info *info = (struct ibmlcdfb_info *) inf;

-	ncolors = 1 << bpp_from_par(info->gen.info.par);
+	ncolors = bpp_from_par(info->gen.info.par);
+
 	if (regno >= ncolors)
 		return -EINVAL;



--
David Gibson			| For every complex problem there is a
david@gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.
http://www.ozlabs.org/people/dgibson

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Beech LCD patch

From: Tom Rini <hidden>
Date: 2002-08-12 19:07:18

On Mon, Aug 12, 2002 at 10:42:04AM +1000, David Gibson wrote:
Could somebody please commit the following patch to
linuxppc_2_4_devel.  It fixes a bug in the Beech/405LP LCD driver.
I'd commit it myself, except me doing a push seems to break the tree
at the moment.
With the magic of BK_USER/BK_HOST, pushed.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help