diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-09-01 23:25:15 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-04-19 16:28:04 +0200 |
commit | 2a0fd0a95a1e63f18df189c178459c5965d4ce6c (patch) | |
tree | 7e556db71a9d0d5791ff1f3c58ac439b5a6fee51 /arch/arm/mach-pxa/include | |
parent | 08d3df8c81537089fc8f21006b56f2f6fb23c6f8 (diff) | |
download | linux-stable-2a0fd0a95a1e63f18df189c178459c5965d4ce6c.tar.gz linux-stable-2a0fd0a95a1e63f18df189c178459c5965d4ce6c.tar.bz2 linux-stable-2a0fd0a95a1e63f18df189c178459c5965d4ce6c.zip |
ARM: pxa: stop using mach/bitfield.h
There are two identical copies of mach/bitfield.h, one for
mach-sa1100 and one for mach-pxa. The pxafb driver only
makes use of two macros, which can be trivially open-coded
in the header.
Cc: dri-devel@lists.freedesktop.org
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-pxa/include')
-rw-r--r-- | arch/arm/mach-pxa/include/mach/regs-lcd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/include/mach/regs-lcd.h b/arch/arm/mach-pxa/include/mach/regs-lcd.h index e2b6e3d1f625..6a434675f84a 100644 --- a/arch/arm/mach-pxa/include/mach/regs-lcd.h +++ b/arch/arm/mach-pxa/include/mach/regs-lcd.h @@ -2,8 +2,6 @@ #ifndef __ASM_ARCH_REGS_LCD_H #define __ASM_ARCH_REGS_LCD_H -#include <mach/bitfield.h> - /* * LCD Controller Registers and Bits Definitions */ @@ -86,6 +84,9 @@ #define LCCR0_OUC (1 << 25) /* Overlay Underlay control bit */ #define LCCR0_LDDALT (1 << 26) /* LDD alternate mapping control */ +#define Fld(Size, Shft) (((Size) << 16) + (Shft)) +#define FShft(Field) ((Field) & 0x0000FFFF) + #define LCCR1_PPL Fld (10, 0) /* Pixels Per Line - 1 */ #define LCCR1_DisWdth(Pixel) (((Pixel) - 1) << FShft (LCCR1_PPL)) |