* [PATCH 1/2] mfd: cros ec: spi: Use consistent function names
@ 2013-11-25 12:22 Thierry Reding
2013-11-25 12:22 ` [PATCH 2/2] mfd: cros ec: i2c: " Thierry Reding
2013-11-25 12:36 ` [PATCH 1/2] mfd: cros ec: spi: " Lee Jones
0 siblings, 2 replies; 3+ messages in thread
From: Thierry Reding @ 2013-11-25 12:22 UTC (permalink / raw)
To: Lee Jones; +Cc: Samuel Ortiz, linux-kernel
Rename cros_ec_{probe,remove}_spi() to cros_ec_spi_{probe,remove}() for
consistency.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/mfd/cros_ec_spi.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/mfd/cros_ec_spi.c b/drivers/mfd/cros_ec_spi.c
index 27be73523b9c..5658ec48838f 100644
--- a/drivers/mfd/cros_ec_spi.c
+++ b/drivers/mfd/cros_ec_spi.c
@@ -284,7 +284,7 @@ static int cros_ec_command_spi_xfer(struct cros_ec_device *ec_dev,
return 0;
}
-static int cros_ec_probe_spi(struct spi_device *spi)
+static int cros_ec_spi_probe(struct spi_device *spi)
{
struct device *dev = &spi->dev;
struct cros_ec_device *ec_dev;
@@ -326,7 +326,7 @@ static int cros_ec_probe_spi(struct spi_device *spi)
return 0;
}
-static int cros_ec_remove_spi(struct spi_device *spi)
+static int cros_ec_spi_remove(struct spi_device *spi)
{
struct cros_ec_device *ec_dev;
@@ -367,8 +367,8 @@ static struct spi_driver cros_ec_driver_spi = {
.owner = THIS_MODULE,
.pm = &cros_ec_spi_pm_ops,
},
- .probe = cros_ec_probe_spi,
- .remove = cros_ec_remove_spi,
+ .probe = cros_ec_spi_probe,
+ .remove = cros_ec_spi_remove,
.id_table = cros_ec_spi_id,
};
--
1.8.4.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] mfd: cros ec: i2c: Use consistent function names
2013-11-25 12:22 [PATCH 1/2] mfd: cros ec: spi: Use consistent function names Thierry Reding
@ 2013-11-25 12:22 ` Thierry Reding
2013-11-25 12:36 ` [PATCH 1/2] mfd: cros ec: spi: " Lee Jones
1 sibling, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2013-11-25 12:22 UTC (permalink / raw)
To: Lee Jones; +Cc: Samuel Ortiz, linux-kernel
Rename cros_ec_{probe,remove}_i2c() to cros_ec_i2c_{probe,remove}() for
consistency.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/mfd/cros_ec_i2c.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/mfd/cros_ec_i2c.c b/drivers/mfd/cros_ec_i2c.c
index 123044608b63..4f71be99a183 100644
--- a/drivers/mfd/cros_ec_i2c.c
+++ b/drivers/mfd/cros_ec_i2c.c
@@ -120,7 +120,7 @@ static int cros_ec_command_xfer(struct cros_ec_device *ec_dev,
return ret;
}
-static int cros_ec_probe_i2c(struct i2c_client *client,
+static int cros_ec_i2c_probe(struct i2c_client *client,
const struct i2c_device_id *dev_id)
{
struct device *dev = &client->dev;
@@ -150,7 +150,7 @@ static int cros_ec_probe_i2c(struct i2c_client *client,
return 0;
}
-static int cros_ec_remove_i2c(struct i2c_client *client)
+static int cros_ec_i2c_remove(struct i2c_client *client)
{
struct cros_ec_device *ec_dev = i2c_get_clientdata(client);
@@ -190,8 +190,8 @@ static struct i2c_driver cros_ec_driver = {
.owner = THIS_MODULE,
.pm = &cros_ec_i2c_pm_ops,
},
- .probe = cros_ec_probe_i2c,
- .remove = cros_ec_remove_i2c,
+ .probe = cros_ec_i2c_probe,
+ .remove = cros_ec_i2c_remove,
.id_table = cros_ec_i2c_id,
};
--
1.8.4.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] mfd: cros ec: spi: Use consistent function names
2013-11-25 12:22 [PATCH 1/2] mfd: cros ec: spi: Use consistent function names Thierry Reding
2013-11-25 12:22 ` [PATCH 2/2] mfd: cros ec: i2c: " Thierry Reding
@ 2013-11-25 12:36 ` Lee Jones
1 sibling, 0 replies; 3+ messages in thread
From: Lee Jones @ 2013-11-25 12:36 UTC (permalink / raw)
To: Thierry Reding; +Cc: Samuel Ortiz, linux-kernel
Both patches applied, thanks.
--
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] 3+ messages in thread
end of thread, other threads:[~2013-11-25 12:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25 12:22 [PATCH 1/2] mfd: cros ec: spi: Use consistent function names Thierry Reding
2013-11-25 12:22 ` [PATCH 2/2] mfd: cros ec: i2c: " Thierry Reding
2013-11-25 12:36 ` [PATCH 1/2] mfd: cros ec: spi: " Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox