fbdev: imxfb: use BIT, FIELD_{GET,PREP} and GENMASK macros
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sat, 11 Nov 2023 10:41:52 +0000 (11:41 +0100)
committerHelge Deller <deller@gmx.de>
Thu, 11 Jan 2024 16:09:01 +0000 (17:09 +0100)
commitb0e05872f7ae4d005e51952b2f3aca9504452495
treeba066bb3525dd9fe94cfb20cd7c442484d640c05
parentb85f173679900d1f4d1abfc6aa00495ecf1b17e4
fbdev: imxfb: use BIT, FIELD_{GET,PREP} and GENMASK macros

Replace opencoded masking and shifting, with BIT(), GENMASK(),
FIELD_GET() and FIELD_PREP() macros.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/imxfb.c