[PATCH 2/2] i2c: Added switch for allowing usage 16bit register addresses

Sascha Hauer s.hauer at pengutronix.de
Fri May 11 14:35:11 EDT 2012


On Fri, May 11, 2012 at 10:17:25PM +0400, Alexander Shiyan wrote:
> Fri, 11 May 2012 20:15:08 +0200 от Sascha Hauer <s.hauer at pengutronix.de>:
> > 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?
> Maybe "use 16bit-wide address access" ?

Fine. It has 16bit and a word with 'w' in it ;)

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