aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/cros_ec_i2c.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2013-11-25 07:22:31 -0500
committerLee Jones <lee.jones@linaro.org>2014-01-21 03:13:35 -0500
commit192afe5e16054f43113803d6751f567ef2e467ae (patch)
tree9c0d42dd0e2fafc3e4e9f97d95862ec516f31907 /drivers/mfd/cros_ec_i2c.c
parent9922b4129c898223513ff5bee007463182a19b58 (diff)
mfd: cros ec: i2c: Use consistent function names
Rename cros_ec_{probe,remove}_i2c() to cros_ec_i2c_{probe,remove}() for consistency. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/cros_ec_i2c.c')
-rw-r--r--drivers/mfd/cros_ec_i2c.c8
1 files 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,
120 return ret; 120 return ret;
121} 121}
122 122
123static int cros_ec_probe_i2c(struct i2c_client *client, 123static int cros_ec_i2c_probe(struct i2c_client *client,
124 const struct i2c_device_id *dev_id) 124 const struct i2c_device_id *dev_id)
125{ 125{
126 struct device *dev = &client->dev; 126 struct device *dev = &client->dev;
@@ -150,7 +150,7 @@ static int cros_ec_probe_i2c(struct i2c_client *client,
150 return 0; 150 return 0;
151} 151}
152 152
153static int cros_ec_remove_i2c(struct i2c_client *client) 153static int cros_ec_i2c_remove(struct i2c_client *client)
154{ 154{
155 struct cros_ec_device *ec_dev = i2c_get_clientdata(client); 155 struct cros_ec_device *ec_dev = i2c_get_clientdata(client);
156 156
@@ -190,8 +190,8 @@ static struct i2c_driver cros_ec_driver = {
190 .owner = THIS_MODULE, 190 .owner = THIS_MODULE,
191 .pm = &cros_ec_i2c_pm_ops, 191 .pm = &cros_ec_i2c_pm_ops,
192 }, 192 },
193 .probe = cros_ec_probe_i2c, 193 .probe = cros_ec_i2c_probe,
194 .remove = cros_ec_remove_i2c, 194 .remove = cros_ec_i2c_remove,
195 .id_table = cros_ec_i2c_id, 195 .id_table = cros_ec_i2c_id,
196}; 196};
197 197