xtensa: use macros to generate *_bit and test_and_*_bit functions
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 16 Oct 2019 05:04:13 +0000 (22:04 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 26 Nov 2019 19:33:38 +0000 (11:33 -0800)
commitb387dc044efaa07cd8a47316c83fe2a5c08f9650
tree24aa130e27a872a6cb1527a4403f7c093a5f5ff9
parentcbc6e28703c44a321e9d8a8894ec11bc6e7e473d
xtensa: use macros to generate *_bit and test_and_*_bit functions

Parameterize macros with function name, opcode and inversion pattern.
This reduces code duplication removing 2/3 of definitions.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/bitops.h