[PATCH-for-5.2 1/3] hw/i2c: Fix typo in description

Philippe Mathieu-Daudé posted 3 patches 5 years, 6 months ago
[PATCH-for-5.2 1/3] hw/i2c: Fix typo in description
Posted by Philippe Mathieu-Daudé 5 years, 6 months ago
Remove the second 'and' introduced in commit 73d5f22ecb
("hw/i2c: Document the I2C qdev helpers").

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 include/hw/i2c/i2c.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/hw/i2c/i2c.h b/include/hw/i2c/i2c.h
index a9c030a512..f57808851e 100644
--- a/include/hw/i2c/i2c.h
+++ b/include/hw/i2c/i2c.h
@@ -102,7 +102,7 @@ I2CSlave *i2c_slave_new(const char *name, uint8_t addr);
 I2CSlave *i2c_slave_create_simple(I2CBus *bus, const char *name, uint8_t addr);
 
 /**
- * Realize and and drop a reference an I2C slave device
+ * Realize and drop a reference an I2C slave device
  * @dev: I2C slave device to realize
  * @bus: I2C bus to put it on
  * @addr: I2C address of the slave on the bus
-- 
2.21.3


Re: [PATCH-for-5.2 1/3] hw/i2c: Fix typo in description
Posted by Corey Minyard 5 years, 6 months ago
On Tue, Aug 11, 2020 at 05:16:41PM +0200, Philippe Mathieu-Daudé wrote:
> Remove the second 'and' introduced in commit 73d5f22ecb
> ("hw/i2c: Document the I2C qdev helpers").
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Well, it seems rather obvious that this is correct :), so:

Reviewed-by: Corey Minyard <cminyard@mvista.com>

> ---
>  include/hw/i2c/i2c.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/hw/i2c/i2c.h b/include/hw/i2c/i2c.h
> index a9c030a512..f57808851e 100644
> --- a/include/hw/i2c/i2c.h
> +++ b/include/hw/i2c/i2c.h
> @@ -102,7 +102,7 @@ I2CSlave *i2c_slave_new(const char *name, uint8_t addr);
>  I2CSlave *i2c_slave_create_simple(I2CBus *bus, const char *name, uint8_t addr);
>  
>  /**
> - * Realize and and drop a reference an I2C slave device
> + * Realize and drop a reference an I2C slave device
>   * @dev: I2C slave device to realize
>   * @bus: I2C bus to put it on
>   * @addr: I2C address of the slave on the bus
> -- 
> 2.21.3
> 
>