From: David Gibson <david@gibson.dropbear.id.au>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Beech LCD patch
Date: Mon, 12 Aug 2002 10:42:04 +1000 [thread overview]
Message-ID: <20020812004204.GN23642@zax> (raw)
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/
next reply other threads:[~2002-08-12 0:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-12 0:42 David Gibson [this message]
2002-08-12 19:07 ` Beech LCD patch Tom Rini
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=20020812004204.GN23642@zax \
--to=david@gibson.dropbear.id.au \
--cc=linuxppc-embedded@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).