Re: [PATCH v5 3/6] mfd: Add ChromeOS EC I2C driver

2013-02-20 Thread Dmitry Torokhov
On Wed, Feb 20, 2013 at 09:24:36AM -0800, Simon Glass wrote: > +#ifdef DEBUG > + dev_dbg(ec_dev->dev, "packet: "); > + for (i = 0; i < i2c_msg[1].len; i++) > + dev_cont(ec_dev->dev, " %02x", in_buf[i]); > + dev_cont(ec_dev->dev, ", sum = %02x\n", sum); There is "%ph" now so

[PATCH v5 3/6] mfd: Add ChromeOS EC I2C driver

2013-02-20 Thread Simon Glass
This uses an I2C bus to talk to the ChromeOS EC. The protocol is defined by the EC and is fairly simple, with a length byte, checksum, command byte and version byte (to permit easy creation of new commands). Signed-off-by: Simon Glass Signed-off-by: Che-Liang Chiou --- Changes in v5: - Fix Kconf