mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] mfd: tps65912: Fix variable name for SPI remove
@ 2017-03-15 17:05 Andrew F. Davis
  2017-03-16 13:54 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew F. Davis @ 2017-03-15 17:05 UTC (permalink / raw)
  To: Lee Jones; +Cc: linux-kernel, 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.

Signed-off-by: Andrew F. Davis <afd@ti.com>
---

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

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

diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c
index 4aeba9b6942a..3bd75061f777 100644
--- a/drivers/mfd/tps65912-spi.c
+++ b/drivers/mfd/tps65912-spi.c
@@ -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);
 }
-- 
2.11.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] mfd: tps65912: Fix variable name for SPI remove
  2017-03-15 17:05 [PATCH v2] mfd: tps65912: Fix variable name for SPI remove Andrew F. Davis
@ 2017-03-16 13:54 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2017-03-16 13:54 UTC (permalink / raw)
  To: Andrew F. Davis; +Cc: linux-kernel

On Wed, 15 Mar 2017, Andrew F. Davis wrote:

> 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>
> ---
> 
> Changes from v1:
>  - Rebased on v4.11-rc1
> 
>  drivers/mfd/tps65912-spi.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c
> index 4aeba9b6942a..3bd75061f777 100644
> --- a/drivers/mfd/tps65912-spi.c
> +++ b/drivers/mfd/tps65912-spi.c
> @@ -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);
>  }

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-16 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 17:05 [PATCH v2] mfd: tps65912: Fix variable name for SPI remove Andrew F. Davis
2017-03-16 13:54 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®