Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/marvell Make sc_started bool and true/false instead ...
details: https://anonhg.NetBSD.org/src/rev/8b88582eed87
branches: trunk
changeset: 789739:8b88582eed87
user: matt <matt%NetBSD.org@localhost>
date: Thu Sep 05 22:28:57 2013 +0000
description:
Make sc_started bool and true/false instead of 1/0
diffstat:
sys/dev/marvell/gttwsi.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r bda98696946f -r 8b88582eed87 sys/dev/marvell/gttwsi.c
--- a/sys/dev/marvell/gttwsi.c Thu Sep 05 21:00:15 2013 +0000
+++ b/sys/dev/marvell/gttwsi.c Thu Sep 05 22:28:57 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gttwsi.c,v 1.9 2013/08/03 07:39:31 kiyohara Exp $ */
+/* $NetBSD: gttwsi.c,v 1.10 2013/09/05 22:28:57 matt Exp $ */
/*
* Copyright (c) 2008 Eiji Kawauchi.
* All rights reserved.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gttwsi.c,v 1.9 2013/08/03 07:39:31 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gttwsi.c,v 1.10 2013/09/05 22:28:57 matt Exp $");
#include "locators.h"
#include <sys/param.h>
@@ -90,7 +90,7 @@
device_t sc_dev;
bus_space_tag_t sc_bust;
bus_space_handle_t sc_bush;
- uint8_t sc_started;
+ bool sc_started;
struct i2c_controller sc_i2c;
kmutex_t sc_buslock;
kmutex_t sc_mtx;
@@ -188,7 +188,7 @@
mutex_init(&sc->sc_mtx, MUTEX_DEFAULT, IPL_BIO);
cv_init(&sc->sc_cv, "gttwsi");
- sc->sc_started = 0;
+ sc->sc_started = false;
sc->sc_i2c.ic_cookie = sc;
sc->sc_i2c.ic_acquire_bus = gttwsi_acquire_bus;
sc->sc_i2c.ic_release_bus = gttwsi_release_bus;
@@ -259,7 +259,7 @@
expect = STAT_RSCT;
else
expect = STAT_SCT;
- sc->sc_started = 1;
+ sc->sc_started = true;
return gttwsi_wait(sc, CONTROL_START, expect, flags);
}
@@ -269,7 +269,7 @@
struct gttwsi_softc *sc = v;
int retry = TWSI_RETRY_COUNT;
- sc->sc_started = 0;
+ sc->sc_started = false;
/* Interrupt is not generated for STAT_NRS. */
WREG(sc, TWSI_CONTROL, CONTROL_STOP | CONTROL_TWSIEN);
Home |
Main Index |
Thread Index |
Old Index