[PATCH 2/2] i2c: Added switch for allowing usage 16bit register addresses
Sascha Hauer
s.hauer at pengutronix.de
Fri May 11 14:15:08 EDT 2012
On Fri, May 11, 2012 at 07:42:19PM +0400, Alexander Shiyan wrote:
> ---
> printf("0x%02x ", *(buf + i));
> @@ -135,7 +138,8 @@ static const __maybe_unused char cmd_i2c_write_help[] =
> "write to i2c device.\n"
> " -a 0x<addr> i2c device address\n"
> " -b <bus_num> i2c bus number (default = 0)\n"
> -" -r 0x<reg> start register\n";
> +" -r 0x<reg> start register\n"
> +" -w use the word as an address\n";
Can we have 'do word (16bit) accesses' here to make this a bit more
explicit?
> @@ -205,6 +212,7 @@ static const __maybe_unused char cmd_i2c_read_help[] =
> " -a 0x<addr> i2c device address\n"
> " -b <bus_num> i2c bus number (default = 0)\n"
> " -r 0x<reg> start register\n"
> +" -w use the word as an address\n"
> " -c <count> byte count\n";
ditto
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list