WSL2-Linux-Kernel/drivers/leds
Axel Lin ec44fd4298 drivers/leds/leds-lm3530.c: fix setting pltfm->als_vmax
In current code, pltfm->als_vmin is set to LM3530_ALS_WINDOW_mV and
pltfm->als_vmax is 0.  This does not make sense.  I think what we want
here is setting pltfm->als_vmax to LM3530_ALS_WINDOW_mV.

Both als_vmin and als_vmax local variables will be set to
pltfm->als_vmin and pltfm->als_vmax by a few lines latter.  Thus also
remove a redundant assignment for als_vmin and als_vmax in this patch.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Acked-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Tested-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-02-08 19:03:51 -08:00
..
Kconfig leds: add led driver for Bachmann's ot200 2012-01-23 08:38:47 -08:00
Makefile leds: add led driver for Bachmann's ot200 2012-01-23 08:38:47 -08:00
dell-led.c
led-class.c
led-core.c
led-triggers.c
leds-88pm860x.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-adp5520.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-ams-delta.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-asic3.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-atmel-pwm.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-bd2802.c drivers/leds/leds-bd2802.c: use gpio_request_one() 2012-01-10 16:30:49 -08:00
leds-clevo-mail.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
leds-cobalt-qube.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-cobalt-raq.c
leds-da903x.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-dac124s085.c leds: convert leds-dac124s085 to module_spi_driver 2012-01-10 16:30:49 -08:00
leds-fsg.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-gpio-register.c
leds-gpio.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-hp6xx.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-lm3530.c drivers/leds/leds-lm3530.c: fix setting pltfm->als_vmax 2012-02-08 19:03:51 -08:00
leds-locomo.c
leds-lp3944.c leds: convert led i2c drivers to module_i2c_driver 2012-01-10 16:30:48 -08:00
leds-lp5521.c leds: convert led i2c drivers to module_i2c_driver 2012-01-10 16:30:48 -08:00
leds-lp5523.c drivers/leds/leds-lp5523.c: remove unneeded forward declaration 2012-01-10 16:30:49 -08:00
leds-lt3593.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-max8997.c leds: Add suuport for MAX8997-LED driver 2012-01-09 00:37:41 +01:00
leds-mc13783.c drivers/leds/leds-mc13783.c: fix off-by-one for checking num_leds 2012-01-10 16:30:49 -08:00
leds-net48xx.c
leds-net5501.c
leds-netxbig.c drivers/leds/leds-netxbig.c: use gpio_request_one() 2012-01-10 16:30:49 -08:00
leds-ns2.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-ot200.c leds: add led driver for Bachmann's ot200 2012-01-23 08:38:47 -08:00
leds-pca955x.c leds: convert led i2c drivers to module_i2c_driver 2012-01-10 16:30:48 -08:00
leds-pca9532.c leds: convert led i2c drivers to module_i2c_driver 2012-01-10 16:30:48 -08:00
leds-pwm.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-rb532.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-regulator.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-renesas-tpu.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-s3c24xx.c leds: convert led platform drivers to module_platform_driver 2012-01-10 16:30:48 -08:00
leds-ss4200.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
leds-sunfire.c
leds-tca6507.c leds: add driver for TCA6507 LED controller 2012-01-10 16:30:49 -08:00
leds-wm831x-status.c leds: convert wm831x status driver to devm_kzalloc() 2012-01-10 16:30:49 -08:00
leds-wm8350.c leds: convert wm8350 driver to devm_kzalloc() 2012-01-10 16:30:49 -08:00
leds-wrap.c
leds.h
ledtrig-backlight.c
ledtrig-default-on.c
ledtrig-gpio.c
ledtrig-heartbeat.c
ledtrig-ide-disk.c
ledtrig-timer.c