https://github.com/torvalds/linux
Revision 19506fc51852e859bb08ab5abbdb8fd02b7392f2 authored by Bruno Randolf on 25 September 2008, 14:45:10 UTC, committed by Ralf Baechle on 27 September 2008, 14:45:35 UTC
David Brownell <david-b@pacbell.net> wrote:
>       The problem is that "value" is zero-or-nonzero.
>       This code wrongly assumes it's zero-or-one.
>       Possible fix:  "((!!value) << gpio)".

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 6ef190c
History
Tip revision: 19506fc51852e859bb08ab5abbdb8fd02b7392f2 authored by Bruno Randolf on 25 September 2008, 14:45:10 UTC
[MIPS] au1000: Make sure GPIO value is zero or one
Tip revision: 19506fc
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.7 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 99.5 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top