summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/iicbus/iic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/iicbus/iic.h b/sys/dev/iicbus/iic.h
index ed22d85..471f976 100644
--- a/sys/dev/iicbus/iic.h
+++ b/sys/dev/iicbus/iic.h
@@ -36,7 +36,8 @@ struct iic_msg
{
uint16_t slave;
uint16_t flags;
-#define IIC_M_RD 0x0001 /* read vs write */
+#define IIC_M_WR 0 /* Fake flag for write */
+#define IIC_M_RD 0x0001 /* read vs write */
uint16_t len; /* msg legnth */
uint8_t * buf;
};
OpenPOWER on IntegriCloud