android_kernel_xiaomi_sm8350/drivers/video/backlight
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
..
88pm860x_bl.c backlight: 88pm860x_bl: fix error handling in pm860x_backlight_probe 2010-05-26 17:34:37 +01:00
adp5520_bl.c
adp8860_bl.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
adx_bl.c
atmel-pwm-bl.c
backlight.c
corgi_lcd.c
cr_bllcd.c
da903x_bl.c
ep93xx_bl.c backlight: Add Cirrus EP93xx backlight driver 2010-05-26 13:08:32 +01:00
generic_bl.c
hp680_bl.c
ili9320.c
ili9320.h
jornada720_bl.c
jornada720_lcd.c
kb3886_bl.c
Kconfig backlight: Add pcf50633 backlight driver 2010-05-26 17:34:38 +01:00
l4f00242t03.c backlight: l4f00242t03: fix error handling in l4f00242t03_probe 2010-05-26 17:34:35 +01:00
lcd.c
lms283gf05.c
locomolcd.c
ltv350qv.c
ltv350qv.h
Makefile backlight: Add pcf50633 backlight driver 2010-05-26 17:34:38 +01:00
max8925_bl.c backlight: max8925_bl: Fix error handling path 2010-05-26 17:34:36 +01:00
mbp_nvidia_bl.c backlight: mbp_nvidia_bl - Fix DMI_SYS_VENDOR for MacBook1,1 2010-05-26 13:08:32 +01:00
omap1_bl.c
pcf50633-backlight.c backlight: Add pcf50633 backlight driver 2010-05-26 17:34:38 +01:00
platform_lcd.c
progear_bl.c
pwm_bl.c
s6e63m0_gamma.h backlight: add S6E63M0 AMOLED LCD Panel driver 2010-05-26 17:34:16 +01:00
s6e63m0.c backlight: add S6E63M0 AMOLED LCD Panel driver 2010-05-26 17:34:16 +01:00
tdo24m.c
tosa_bl.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
tosa_lcd.c
vgg2432a4.c
wm831x_bl.c