Skip to content

Commit

Permalink
mfd: Don't abuse i2c_client.name
Browse files Browse the repository at this point in the history
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: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Jean Delvare authored and Samuel Ortiz committed Dec 13, 2009
1 parent 956266d commit 29f0264
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions drivers/mfd/ab3100-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,9 +900,6 @@ static int __init ab3100_probe(struct i2c_client *client,
goto exit_no_testreg_client;
}

strlcpy(ab3100->testreg_client->name, id->name,
sizeof(ab3100->testreg_client->name));

err = ab3100_setup(ab3100);
if (err)
goto exit_no_setup;
Expand Down
2 changes: 0 additions & 2 deletions drivers/mfd/twl4030-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,6 @@ twl4030_probe(struct i2c_client *client, const struct i2c_device_id *id)
status = -ENOMEM;
goto fail;
}
strlcpy(twl->client->name, id->name,
sizeof(twl->client->name));
}
mutex_init(&twl->xfer_lock);
}
Expand Down

0 comments on commit 29f0264

Please sign in to comment.