]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: fix SPI_BPW_RANGE_MASK() regression
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Mar 2019 21:00:34 +0000 (22:00 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 14 Mar 2019 15:52:33 +0000 (15:52 +0000)
commit6d85028134d3f4f946924e2f9f0aaff47d9de840
treeee5eb5f00462fe027f4a032e9c03d4901772f6da
parent8fcb830a00f0980ffe38d223cdd9a4d2d24da476
spi: fix SPI_BPW_RANGE_MASK() regression

Geert points out that I confused the min/max arguments that are
reversed between SPI_BPW_RANGE_MASK() and GENMASK(). This time
I have verified the result of the macro after fixing the arguments.

Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: eefffb42f665 ("spi: work around clang bug in SPI_BPW_RANGE_MASK()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi.h