Add a fake flag for write. Many drivers have started to use it and it

seems like a good idea.

Submitted by: sam
This commit is contained in:
Warner Losh 2006-11-28 06:51:36 +00:00
parent 843b99c6f7
commit 46ca0665fd

View file

@ -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;
};