Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/omap Fix what is almost certianly an off-by-one...



details:   https://anonhg.NetBSD.org/src/rev/154b801549c8
branches:  trunk
changeset: 331748:154b801549c8
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri Aug 22 20:01:16 2014 +0000

description:
Fix what is almost certianly an off-by-one error when configuring pads on
AM335x for BPP greater than 16.

diffstat:

 sys/arch/arm/omap/tifb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8f5b688470f3 -r 154b801549c8 sys/arch/arm/omap/tifb.c
--- a/sys/arch/arm/omap/tifb.c  Fri Aug 22 19:59:18 2014 +0000
+++ b/sys/arch/arm/omap/tifb.c  Fri Aug 22 20:01:16 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tifb.c,v 1.2 2014/08/22 19:59:18 jakllsch Exp $        */
+/*     $NetBSD: tifb.c,v 1.3 2014/08/22 20:01:16 jakllsch Exp $        */
 
 /*
  * Copyright (c) 2010 Michael Lorenz
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tifb.c,v 1.2 2014/08/22 19:59:18 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tifb.c,v 1.3 2014/08/22 20:01:16 jakllsch Exp $");
 
 #include "opt_omap.h"
 
@@ -443,7 +443,7 @@
 
 #ifdef TI_AM335X
        /* configure output pins */
-       for (i = 0; i < ((sc->sc_panel->bpp == 16) ? 16 : 23); i++) {
+       for (i = 0; i < ((sc->sc_panel->bpp == 16) ? 16 : 24); i++) {
                if (sitara_cm_padconf_get(tifb_padconf_data[i].padname,
                    &mode, &state) == 0) {
                        aprint_debug(": %s mode %s state %d ",



Home | Main Index | Thread Index | Old Index