ARM: pxa: stop using mach/bitfield.h
authorArnd Bergmann <arnd@arndb.de>
Sun, 1 Sep 2019 21:25:15 +0000 (23:25 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 19 Apr 2022 14:28:04 +0000 (16:28 +0200)
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>
arch/arm/mach-pxa/idp.c
arch/arm/mach-pxa/include/mach/regs-lcd.h
arch/arm/mach-pxa/regs-u2d.h
drivers/video/fbdev/pxafb.c

index 57c0511472bc5b39f07a080c1de4efb77cafcbd8..525d01ddfbbb4ce651e7370b8c95ad92d91c301d 100644 (file)
@@ -30,7 +30,6 @@
 #include "pxa25x.h"
 #include "idp.h"
 #include <linux/platform_data/video-pxafb.h>
-#include <mach/bitfield.h>
 #include <linux/platform_data/mmc-pxamci.h>
 #include <linux/smc91x.h>
 
index e2b6e3d1f625529a1e15b553b0fe907db3d81d27..6a434675f84a690461db07c4df38007f036c5b46 100644 (file)
@@ -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))
 
index fe4c80ad87ec5ffb87df61dce4d90b7aa45b1cd9..ab517ba62c9af4a98d16d49e071e8f6d5bf923a9 100644 (file)
@@ -2,8 +2,6 @@
 #ifndef __ASM_ARCH_PXA3xx_U2D_H
 #define __ASM_ARCH_PXA3xx_U2D_H
 
-#include <mach/bitfield.h>
-
 /*
  * USB2 device controller registers and bits definitions
  */
index e3d1a184d2bead314e9b7bd10cc3d861cc60904c..edf080f64a8c5412d10bf7d5fd9ea986901b2003 100644 (file)
@@ -64,7 +64,6 @@
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/div64.h>
-#include <mach/bitfield.h>
 #include <linux/platform_data/video-pxafb.h>
 
 /*