Fix grammar in comment
PATCH 1/1 Fix grammar in comment
Signed-off-by Stefan Weil <[email protected]>
--- hw/i2c/smbus_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i2c/smbus_eeprom.c +1 -1
@@ -71,7 +71,7 @@ static void eeprom_write_data(SMBusDevice *dev, uint8_t cmd, uint8_t *buf, int lprintf ("eeprom_write_byte: addr=0x%02x cmd=0x%02x val=0x%02x\n" , dev->i2c.address, cmd, buf[0 ]);#endif -/* An page write operation is not a valid SMBus command. +/* A page write operation is not a valid SMBus command. It is a block write without a length byte. Fortunately we get the full block anyway. */ /* TODO: Should this set the current location? */
Signature · 1 line
1.7.10.4
Quoted 1 line · Stefan Weil
Signed-off-by Stefan Weil <[email protected]>
Reviewed-by Peter Crosthwaite <[email protected]>
Quoted 21 lines
--- hw/i2c/smbus_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/i2c/smbus_eeprom.c +1
-2@@ -71,7 +71,7 @@ static void eeprom_write_data(SMBusDevice *dev, uint8_t cmd, uint8_t *buf, int lprintf ("eeprom_write_byte: addr=0x%02x cmd=0x%02x val=0x%02x\n" , dev->i2c.address, cmd, buf[0 ]);#endif -/* An page write operation is not a valid SMBus command. +/* A page write operation is not a valid SMBus command. It is a block write without a length byte. Fortunately we get the full block anyway. */ /* TODO: Should this set the current location? */ --1.7.10.4
Michael Tokarev
AppliedApplied to -trivial, thanks!
/mjt