efi/gop: Use helper macros for find_bits
authorArvind Sankar <nivedita@alum.mit.edu>
Fri, 20 Mar 2020 02:00:22 +0000 (22:00 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 23 Apr 2020 18:15:06 +0000 (20:15 +0200)
commit9867fc9de6a6a7a54edb2c43540c6db226e84a14
tree5b72b1c7bcc5446d069a8bad42e3bd8b79363b08
parentf1d1853bdbcfb2d00ae0b850baf26d87e6d363d8
efi/gop: Use helper macros for find_bits

Use the __ffs/__fls macros to calculate the position and size of the
mask.

Correct type of mask to u32 instead of unsigned long.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200320020028.1936003-9-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/gop.c