diff options
| author | Axel Lin <[email protected]> | 2012-02-09 01:13:39 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-02-09 03:03:51 +0000 |
| commit | ec44fd429879f7d4f28021f1a7f9fb0b5f831aab (patch) | |
| tree | a9663df153dec41ad0805eb82a429780a1952965 /lib/syscall.c | |
| parent | mm: compaction: check for overlapping nodes during isolation for migration (diff) | |
| download | kernel-ec44fd429879f7d4f28021f1a7f9fb0b5f831aab.tar.gz kernel-ec44fd429879f7d4f28021f1a7f9fb0b5f831aab.zip | |
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 <[email protected]>
Cc: Shreshtha Kumar Sahu <[email protected]>
Acked-by: Milo(Woogyom) Kim <[email protected]>
Tested-by: Milo(Woogyom) Kim <[email protected]>
Cc: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/syscall.c')
0 files changed, 0 insertions, 0 deletions
