]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: RB532: Fix bit swapping in rb532_set_bit()
authorPhil Sutter <n0-1@freewrt.org>
Tue, 11 Nov 2008 23:09:30 +0000 (00:09 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 30 Jan 2009 21:32:59 +0000 (21:32 +0000)
commitf9772117414ea3ff31114fbda3569fdc242d4bd9
tree047cf637a0da94c6d080554c6a25c05463bed4ee
parentbbeffeca627ed8b35a826df7ae4317d3fa5e2631
MIPS: RB532: Fix bit swapping in rb532_set_bit()

The algorithm works unconditionally. If bitval is one, the first line is
a no op and the second line sets the bit at offset position. Vice versa,
if bitval is zero, the first line clears the bit at offset position and
the second line is a no op.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/rb532/gpio.c