Commit 29f02646 authored by Jean Delvare's avatar Jean Delvare Committed by Samuel Ortiz

mfd: Don't abuse i2c_client.name

The name field of struct i2c_client is for i2c-core's use, it should
never be changed by the drivers themselves.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 956266da
...@@ -900,9 +900,6 @@ static int __init ab3100_probe(struct i2c_client *client, ...@@ -900,9 +900,6 @@ static int __init ab3100_probe(struct i2c_client *client,
goto exit_no_testreg_client; goto exit_no_testreg_client;
} }
strlcpy(ab3100->testreg_client->name, id->name,
sizeof(ab3100->testreg_client->name));
err = ab3100_setup(ab3100); err = ab3100_setup(ab3100);
if (err) if (err)
goto exit_no_setup; goto exit_no_setup;
......
...@@ -814,8 +814,6 @@ twl4030_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -814,8 +814,6 @@ twl4030_probe(struct i2c_client *client, const struct i2c_device_id *id)
status = -ENOMEM; status = -ENOMEM;
goto fail; goto fail;
} }
strlcpy(twl->client->name, id->name,
sizeof(twl->client->name));
} }
mutex_init(&twl->xfer_lock); mutex_init(&twl->xfer_lock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment