linux/drivers/staging/iio
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
..
accel Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
adc i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
Documentation staging: iio: Documentation update to add incli and switch to magn 2010-05-11 14:33:24 -07:00
gyro staging: iio: adis16260 digital gyro driver 2010-05-14 13:20:35 -07:00
imu staging: iio: adis16350 and similar IMU driver 2010-05-18 14:44:28 -07:00
light i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
magnetometer staging: iio: Break up gyro.h and move to new abi 2010-05-11 14:33:24 -07:00
trigger Staging: iio: trigger: fix up some global variables 2010-05-11 11:36:10 -07:00
chrdev.h staging:iio: Directory name changes to match new ABI. 2010-05-11 11:36:05 -07:00
iio.h staging: iio: Move from class to bus 2010-05-11 11:36:05 -07:00
industrialio-core.c Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
industrialio-ring.c Staging: iio: industrialio-ring.c: fix up sparse warnings 2010-05-11 11:36:11 -07:00
industrialio-trigger.c Staging: iio: industrialio-trigger.c: minor fixups 2010-05-11 11:36:11 -07:00
Kconfig staging: iio: adis16260 digital gyro driver 2010-05-14 13:20:35 -07:00
Makefile staging: iio: adis16260 digital gyro driver 2010-05-14 13:20:35 -07:00
ring_generic.h staging:iio: Remove naming via IDR's where no longer necessary under new abi. 2010-05-11 11:36:06 -07:00
ring_hw.h
ring_sw.c Staging: iio: ring_sw.c: fix up sparse warnings 2010-05-11 11:36:11 -07:00
ring_sw.h drop explicit include of autoconf.h 2009-12-12 13:08:15 +01:00
sysfs.h staging:iio: Add new attrs for sampling frequency available and temp_raw 2010-05-11 11:36:04 -07:00
TODO
trigger_consumer.h Staging: iio: Staticise non-exported functions 2010-03-03 16:43:02 -08:00
trigger.h