Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/spi ssdfb: fix some constant names. NFC because the ...
details: https://anonhg.NetBSD.org/src/rev/c5826d242a81
branches: trunk
changeset: 985041:c5826d242a81
user: tnn <tnn%NetBSD.org@localhost>
date: Thu Aug 05 19:17:22 2021 +0000
description:
ssdfb: fix some constant names. NFC because the same cmd code is used
diffstat:
sys/dev/spi/ssdfb_spi.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r ad4f7ad1979f -r c5826d242a81 sys/dev/spi/ssdfb_spi.c
--- a/sys/dev/spi/ssdfb_spi.c Thu Aug 05 19:08:59 2021 +0000
+++ b/sys/dev/spi/ssdfb_spi.c Thu Aug 05 19:17:22 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ssdfb_spi.c,v 1.8 2021/08/05 19:08:59 tnn Exp $ */
+/* $NetBSD: ssdfb_spi.c,v 1.9 2021/08/05 19:17:22 tnn Exp $ */
/*
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ssdfb_spi.c,v 1.8 2021/08/05 19:08:59 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ssdfb_spi.c,v 1.9 2021/08/05 19:17:22 tnn Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -410,7 +410,7 @@
return 0;
ssdfb_spi_4wire_set_dc(sc, 0);
- cmd = SSD1322_CMD_SET_ROW_ADDRESS;
+ cmd = SSD1353_CMD_SET_ROW_ADDRESS;
error = spi_send(sc->sc_sh, sizeof(cmd), &cmd);
if (error)
return error;
@@ -427,7 +427,7 @@
return error;
ssdfb_spi_4wire_set_dc(sc, 0);
- cmd = SSD1322_CMD_SET_COLUMN_ADDRESS;
+ cmd = SSD1353_CMD_SET_COLUMN_ADDRESS;
error = spi_send(sc->sc_sh, sizeof(cmd), &cmd);
if (error)
return error;
@@ -439,7 +439,7 @@
return error;
ssdfb_spi_4wire_set_dc(sc, 0);
- cmd = SSD1322_CMD_WRITE_RAM;
+ cmd = SSD1353_CMD_WRITE_RAM;
error = spi_send(sc->sc_sh, sizeof(cmd), &cmd);
if (error)
return error;
Home |
Main Index |
Thread Index |
Old Index