]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/video/backlight/adp88x0_bl.c: fix bit testing logic
authorAxel Lin <axel.lin@gmail.com>
Fri, 20 Jan 2012 22:34:05 +0000 (14:34 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 23 Jan 2012 16:38:48 +0000 (08:38 -0800)
commit663e79093b1f081999aebb6a50d8ad16bd355c4c
tree101610ceccbcd0956f7b7d1799af1e357d81ed79
parentdf967087419c0fd583feb9faababd3ce1275dec4
drivers/video/backlight/adp88x0_bl.c: fix bit testing logic

We need to write new value if the bit mask fields of new value is not
equal to old value.  It does not make sense to write new value only when
all the bit_mask bits are zero.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Michael Hennerich <michael.hennerich@analog.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>
drivers/video/backlight/adp8860_bl.c
drivers/video/backlight/adp8870_bl.c