Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: Clarify which clients are auto-removed

The automatic removal of i2c clients only affects the clients which
were created automatically in the first place. Add a comment saying
that to avoid any confusion.

Signed-off-by: Jean Delvare <khali@linux-fr.org>

+4 -1
+4 -1
drivers/i2c/i2c-core.c
··· 581 581 struct i2c_client *client, *_n; 582 582 int res; 583 583 584 - /* Remove the devices we created ourselves */ 584 + /* Remove the devices we created ourselves as the result of hardware 585 + * probing (using a driver's detect method) */ 585 586 list_for_each_entry_safe(client, _n, &driver->clients, detected) { 586 587 if (client->adapter == adapter) { 587 588 dev_dbg(&adapter->dev, "Removing %s at 0x%x\n", ··· 750 749 struct i2c_driver *driver = data; 751 750 struct i2c_client *client, *_n; 752 751 752 + /* Remove the devices we created ourselves as the result of hardware 753 + * probing (using a driver's detect method) */ 753 754 list_for_each_entry_safe(client, _n, &driver->clients, detected) { 754 755 dev_dbg(&adapter->dev, "Removing %s at 0x%x\n", 755 756 client->name, client->addr);