Re: [PATCH 1/3] include/linux/i2c.h: introduce macros for i2c_msg initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Dienstag, 2. Oktober 2012, 00:24:49 schrieb Ryan Mallon:
> On 30/09/12 17:33, Julia Lawall wrote:
> > From: Julia Lawall <Julia.Lawall@xxxxxxx>
> > 
> > This patch introduces some macros for describing how an i2c_msg is being
> > initialized.  There are three macros: I2C_MSG_READ, for a read message,
> > I2C_MSG_WRITE, for a write message, and I2C_MSG_OP, for some other kind
> > of message, which is expected to be very rarely used.
> > 
> > Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxx>
Cool.
Especially as there is no i2c flag for write this makes code more readable.

Reviewed-by: Peter Huewe <peterhuewe@xxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux