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

[PATCH] i2c: I2C_DF_NOTIFY removal comment cleanups

The removal of I2C_DF_NOTIFY left some out of date comments in the
code. Drop them.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Jean Delvare and committed by
Greg Kroah-Hartman
3fb81a3d fb687d73

-8
-8
drivers/i2c/i2c-core.c
··· 246 246 list_for_each_safe(item, _n, &adap->clients) { 247 247 client = list_entry(item, struct i2c_client, list); 248 248 249 - /* detaching devices is unconditional of the set notify 250 - * flag, as _all_ clients that reside on the adapter 251 - * must be deleted, as this would cause invalid states. 252 - */ 253 249 if ((res=client->driver->detach_client(client))) { 254 250 dev_err(&adap->dev, "detach_client failed for client " 255 251 "[%s] at address 0x%02x\n", client->name, ··· 331 335 /* Have a look at each adapter, if clients of this driver are still 332 336 * attached. If so, detach them to be able to kill the driver 333 337 * afterwards. 334 - * 335 - * Removing clients does not depend on the notify flag, else 336 - * invalid operation might (will!) result, when using stale client 337 - * pointers. 338 338 */ 339 339 list_for_each(item1,&adapters) { 340 340 adap = list_entry(item1, struct i2c_adapter, list);