dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/staging/dream
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
..
camera staging: trivial: fix typo "seperate" 2010-05-14 13:16:10 -07:00
include Staging: dream: add missing include files 2010-03-03 16:42:26 -08:00
qdsp5 Staging: dream: remove last bits of earlysuspend support 2010-05-11 11:35:37 -07:00
Kconfig staging: dream: smd: remove all smd related code 2010-05-14 13:21:30 -07:00
Makefile staging: dream: smd: remove all smd related code 2010-05-14 13:21:30 -07:00
TODO Staging: dream: remove last bits of earlysuspend support 2010-05-11 11:35:37 -07:00
generic_gpio.c Staging: dream: add gpio and pmem support 2009-12-11 12:23:21 -08:00
gpio_axis.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
gpio_event.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
gpio_input.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
gpio_matrix.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
gpio_output.c Staging: dream: add support for input on GPIO pins 2009-09-15 12:02:05 -07:00
pmem.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
synaptics_i2c_rmi.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
synaptics_i2c_rmi.h Staging: HTC Dream: touchscreen driver for staging 2009-09-15 12:02:04 -07:00