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
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
2 matches
Mail list logo