Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic ssdfb: add missing break in switch. Unbreaks cont...



details:   https://anonhg.NetBSD.org/src/rev/4fd0435cb754
branches:  trunk
changeset: 985381:4fd0435cb754
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sat Aug 21 17:50:02 2021 +0000

description:
ssdfb: add missing break in switch. Unbreaks contrast setting for SSD1353

spotted by hannken@

diffstat:

 sys/dev/ic/ssdfb.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 20be4a9bc689 -r 4fd0435cb754 sys/dev/ic/ssdfb.c
--- a/sys/dev/ic/ssdfb.c        Sat Aug 21 15:57:00 2021 +0000
+++ b/sys/dev/ic/ssdfb.c        Sat Aug 21 17:50:02 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ssdfb.c,v 1.21 2021/08/07 16:19:12 thorpej Exp $ */
+/* $NetBSD: ssdfb.c,v 1.22 2021/08/21 17:50:02 tnn Exp $ */
 
 /*
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ssdfb.c,v 1.21 2021/08/07 16:19:12 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ssdfb.c,v 1.22 2021/08/21 17:50:02 tnn Exp $");
 
 #include "opt_ddb.h"
 
@@ -1060,8 +1060,10 @@
                if (error)
                        return error;
                cmd[0] = SSD1353_CMD_SET_CONTRAST_CONTROL_C;
+               break;
        default:
                cmd[0] = SSDFB_CMD_SET_CONTRAST_CONTROL;
+               break;
        }
 
        return sc->sc_cmd(sc->sc_cookie, cmd, sizeof(cmd), usepoll);



Home | Main Index | Thread Index | Old Index