]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: gpio: Fix up pointer arithmetic
authorAndre Przywara <andre.przywara@arm.com>
Sun, 30 Jan 2022 01:19:42 +0000 (01:19 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 30 Jan 2022 01:25:00 +0000 (01:25 +0000)
commit3874923bb8ac53c78fcbb1ab2d88c8b2a142fa4d
tree2286fdc6d3cf292519d715c848596e822624b033
parent2c51bef111f8f05b9ba6e8e3f18fdbaa3a70d2fc
sunxi: gpio: Fix up pointer arithmetic

The calls for flipping bits in the Allwinner pin controller registers
were using unnecessarily complex pointer arithmetic.

Improve readability by simplifying the expression.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/pinmux.c