https://github.com/torvalds/linux
Revision 9b8e3ec34318663affced3c14d960e78d760dd9a authored by Yong Li on 30 March 2016, 06:49:14 UTC, committed by Linus Walleij on 08 April 2016, 09:49:47 UTC
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>
1 parent 159f3cd
History
Tip revision: 9b8e3ec34318663affced3c14d960e78d760dd9a authored by Yong Li on 30 March 2016, 06:49:14 UTC
gpio: pca953x: Use correct u16 value for register word write
Tip revision: 9b8e3ec
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.4 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 343.6 KB
Makefile -rw-r--r-- 55.0 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top