]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pca953x: Use correct u16 value for register word write
authorYong Li <sdliyong@gmail.com>
Wed, 30 Mar 2016 06:49:14 +0000 (14:49 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 8 Apr 2016 09:49:47 +0000 (11:49 +0200)
commit654045fc4e3d644e3debf594b541fa103136d566
tree9e1d0ad6cfdf81d6cba2432dc1e475e0c34b7a84
parentb56bc2d684a747ba60c868edca3e1af1eb7a7260
gpio: pca953x: Use correct u16 value for register word write

The current implementation only uses the first byte in val,
the second byte is always 0. Change it to use cpu_to_le16
to write the two bytes into the register

Cc: stable@vger.kernel.org
Signed-off-by: Yong Li <sdliyong@gmail.com>
Reviewed-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c