Skip to contentSkip to conversation

mfd: tps65912: Fix variable name for SPI remove

PATCH Applied Andrew F. Davis 2 participants 2 messages Mar 15, 2017 – Mar 16, 2017 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mfd: tps65912: Fix variable name for SPI remove

The SPI interface is mostly a copy/paste from the I2C interface with some minor renaming for consistency. "Client" is an I2C specific term that was left in the SPI remove path, rename this here.

---

Changes from v1:
- Rebased on v4.11-rc1

 drivers/mfd/tps65912-spi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mfd/tps65912-spi.c +2 -2
index 4aeba9b6942a..3bd75061f777 100644
@@ -49,9 +49,9 @@ static int tps65912_spi_probe(struct spi_device *spi)
 	return tps65912_device_init(tps);
 }
 
-static int tps65912_spi_remove(struct spi_device *client)
+static int tps65912_spi_remove(struct spi_device *spi)
 {
-	struct tps65912 *tps = spi_get_drvdata(client);
+	struct tps65912 *tps = spi_get_drvdata(spi);
 
 	return tps65912_device_exit(tps);
 }
Signature · 1 line
2.11.0
Applied
#1 lore raw
Quoted 4 lines · Andrew F. Davis

The SPI interface is mostly a copy/paste from the I2C interface with some minor renaming for consistency. "Client" is an I2C specific term that was left in the SPI remove path, rename this here.

Quoted 8 lines

---

Changes from v1:
- Rebased on v4.11-rc1

 drivers/mfd/tps65912-spi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Quoted 16 lines
drivers/mfd/tps65912-spi.c +2 -2
index 4aeba9b6942a..3bd75061f777 100644
@@ -49,9 +49,9 @@ static int tps65912_spi_probe(struct spi_device *spi)
 	return tps65912_device_init(tps);
 }
 
-static int tps65912_spi_remove(struct spi_device *client)
+static int tps65912_spi_remove(struct spi_device *spi)
 {
-	struct tps65912 *tps = spi_get_drvdata(client);
+	struct tps65912 *tps = spi_get_drvdata(spi);
 
 	return tps65912_device_exit(tps);
 }
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog