aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ppbus/lpbb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ppbus/lpbb.c')
-rw-r--r--sys/dev/ppbus/lpbb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ppbus/lpbb.c b/sys/dev/ppbus/lpbb.c
index fe4a21295f74b..87ce6c7a4f2fb 100644
--- a/sys/dev/ppbus/lpbb.c
+++ b/sys/dev/ppbus/lpbb.c
@@ -84,7 +84,7 @@ static int
lpbb_attach(device_t dev)
{
device_t bitbang;
-
+
/* add generic bit-banging code */
bitbang = device_add_child(dev, "iicbb", -1);
device_probe_and_attach(bitbang);
@@ -159,7 +159,7 @@ lpbb_setsda(device_t dev, char val)
mtx_lock(&Giant);
if (val == 0)
ppb_wdtr(ppbus, (u_char)SDA_out);
- else
+ else
ppb_wdtr(ppbus, (u_char)~SDA_out);
mtx_unlock(&Giant);
}
@@ -172,8 +172,8 @@ lpbb_setscl(device_t dev, unsigned char val)
mtx_lock(&Giant);
if (val == 0)
ppb_wctr(ppbus, (u_char)(ppb_rctr(ppbus) & ~SCL_out));
- else
- ppb_wctr(ppbus, (u_char)(ppb_rctr(ppbus) | SCL_out));
+ else
+ ppb_wctr(ppbus, (u_char)(ppb_rctr(ppbus) | SCL_out));
mtx_unlock(&Giant);
}