Home
last modified time | relevance | path

Searched hist:"8 c6619ff22113666b112cace7e4e8d872e09dff3" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpu/drm/mxsfb/
H A Dmxsfb_regs.hdiff 8c6619ff22113666b112cace7e4e8d872e09dff3 Mon Jul 27 04:06:35 CEST 2020 Laurent Pinchart <laurent.pinchart@ideasonboard.com> drm: mxsfb: Use BIT() macro to define register bitfields

Using BIT() is preferred over manual shifts as it's more readable,
handles the 1 << 31 case properly, and avoids other mistakes as shown by
the DEBUG0_HSYNC and DEBUG0_VSYNC bits (that are currently unused). Use
it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200727020654.8231-4-laurent.pinchart@ideasonboard.com