MIPS: RB532: Fix bit swapping in rb532_set_bit()
authorPhil Sutter <[email protected]>
Tue, 11 Nov 2008 23:09:30 +0000 (00:09 +0100)
committerRalf Baechle <[email protected]>
Fri, 30 Jan 2009 21:32:59 +0000 (21:32 +0000)
commit5379a5fdf3cb2b23d00da2a1298167f9a1fb002a
tree047cf637a0da94c6d080554c6a25c05463bed4ee
parentf839490ab42a471f0b0a4b795df77a1af924fe05
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 <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/rb532/gpio.c