]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mfd: tps65912: Fix variable name for SPI remove
authorAndrew F. Davis <afd@ti.com>
Wed, 15 Mar 2017 17:05:34 +0000 (12:05 -0500)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:04 +0000 (09:25 +0100)
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.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps65912-spi.c

index 4aeba9b6942a78292ec62041290bebea6bdc1e5b..3bd75061f7776882065697de527e52938ad350e6 100644 (file)
@@ -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);
 }