From c8665a5997aa892c48f649df0aa72d0e41f8aca8 Mon Sep 17 00:00:00 2001
From: Philippe Mathieu-Daudé
Date: Thu, 17 Jun 2021 13:53:31 +0200
Subject: hw/i2c: Rename i2c_set_slave_address() -> i2c_slave_set_address()

Other functions from I2C slave API are named "i2c_slave_XXX()".
Follow that pattern with set_address(). Add docstring along.
No logical change.

Patch created mechanically using:

  $ sed -i s/i2c_set_slave_address/i2c_slave_set_address/ \
    $(git grep -l i2c_set_slave_address)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
---
 hw/i2c/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'hw/i2c/core.c')

diff --git a/hw/i2c/core.c b/hw/i2c/core.c
index 27a66df7f3..6af24c9e79 100644
--- a/hw/i2c/core.c
+++ b/hw/i2c/core.c
@@ -66,7 +66,7 @@ I2CBus *i2c_init_bus(DeviceState *parent, const char *name)
     return bus;
 }
 
-void i2c_set_slave_address(I2CSlave *dev, uint8_t address)
+void i2c_slave_set_address(I2CSlave *dev, uint8_t address)
 {
     dev->address = address;
 }
-- 
cgit v1.2.3-55-g7522