LCD driver trims whitespace
Julian Stecklina <[email protected]>
| Newsgroups | gmane.linux.ports.hppa |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have a HP Visualize workstation with this fancy little LCD at the front controllable via /proc/pdc/lcd. The problem is that the responsible driver trims all trailing whitespace, which is quite annoying if you want to scroll some text. The attached trivial patch (against 2.6.20.1) removes this behaviour. Regards, Julian Stecklina _______________________________________________ parisc-linux mailing list [email protected] http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
no-space-removal.patch
(text/x-patch, 426 B)
diff -ur linux-2.6.20.1-hppa.orig/drivers/parisc/led.c linux-2.6.20.1-hppa/drivers/parisc/led.c
--- linux-2.6.20.1-hppa.orig/drivers/parisc/led.c 2007-04-19 12:38:55.000000000 +0200
+++ linux-2.6.20.1-hppa/drivers/parisc/led.c 2007-04-04 18:40:34.000000000 +0200
@@ -195,12 +195,6 @@
cur = lbuf;
- /* skip initial spaces */
- while (*cur && isspace(*cur))
- {
- cur++;
- }
-
switch ((long)data)
{
case LED_NOLCD: