]> git.baikalelectronics.ru Git - kernel.git/commit
leds:pca963x: Always initialize MODE2 register
authorPeter Meerwald <pmeerw@pmeerw.net>
Thu, 3 Jul 2014 05:50:35 +0000 (22:50 -0700)
committerBryan Wu <cooloney@gmail.com>
Thu, 3 Jul 2014 18:55:56 +0000 (11:55 -0700)
commit5b8c21cc9c60466c3c3fb94b88147498835a8f72
tree60b3da61cc2b0adab9aa7ea512462bc8c89fcd32
parentab67dfe1b716cf73c60c1afd8a2d561ac676c679
leds:pca963x: Always initialize MODE2 register

PCA9632 defaults to open-drain
PCA9633/4/5 defaults to totem-pole

the driver assumed that totem-pole default and didn't actively set
the value; the MODE2 register is now written if platform
data indicating the mode is given

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-pca963x.c