linux_dsm_epyc7002/drivers/misc
Wolfram Sang fbae3fb154 i2c: Remove all i2c_set_clientdata(client, NULL) in drivers
I2C drivers can use the clientdata-pointer to point to private data. As I2C
devices are not really unregistered, but merely detached from their driver, it
used to be the drivers obligation to clear this pointer during remove() or a
failed probe(). As a couple of drivers forgot to do this, it was agreed that it
was cleaner if the i2c-core does this clearance when appropriate, as there is
no guarantee for the lifetime of the clientdata-pointer after remove() anyhow.
This feature was added to the core with commit
e4a7b9b04d to fix the faulty drivers.

As there is no need anymore to clear the clientdata-pointer, remove all current
occurrences in the drivers to simplify the code and prevent confusion.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Richard Purdie <rpurdie@linux.intel.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2010-06-03 11:33:58 +02:00
..
c2port
cb710
eeprom i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
ibmasm
iwmc3200top
sgi-gru
sgi-xp
ad525x_dpot-i2c.c ad525x_dpot: add support for one time programmable pots 2010-05-25 08:07:04 -07:00
ad525x_dpot-spi.c ad525x_dpot: add support for SPI parts 2010-05-25 08:07:04 -07:00
ad525x_dpot.c ad525x_dpot: add support for one time programmable pots 2010-05-25 08:07:04 -07:00
ad525x_dpot.h ad525x_dpot: add support for one time programmable pots 2010-05-25 08:07:04 -07:00
atmel_pwm.c
atmel_tclib.c
atmel-ssc.c
cs5535-mfgpt.c
ds1682.c
enclosure.c
ep93xx_pwm.c
hpilo.c
hpilo.h
ics932s401.c
ioc4.c
isl29003.c
Kconfig ad525x_dpot: add support for one time programmable pots 2010-05-25 08:07:04 -07:00
kgdbts.c
lkdtm.c lktdm: add support for hardlockup, softlockup and hung task crashes 2010-05-27 09:12:54 -07:00
Makefile ad525x_dpot: add support for SPI parts 2010-05-25 08:07:04 -07:00
phantom.c
ti_dac7512.c
tifm_7xx1.c
tifm_core.c
tsl2550.c
vmware_balloon.c