fbdev: omap: avoid using mach/*.h files
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Aug 2019 14:08:34 +0000 (16:08 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 21 Apr 2022 13:01:14 +0000 (15:01 +0200)
All the headers we actually need are now in include/linux/soc,
so use those versions instead and allow compile-testing on
other architectures.

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/video/backlight/Kconfig
drivers/video/backlight/omap1_bl.c
drivers/video/fbdev/omap/Kconfig
drivers/video/fbdev/omap/lcd_ams_delta.c
drivers/video/fbdev/omap/lcd_dma.c
drivers/video/fbdev/omap/lcd_inn1510.c
drivers/video/fbdev/omap/lcd_osk.c
drivers/video/fbdev/omap/lcdc.c
drivers/video/fbdev/omap/omapfb_main.c
drivers/video/fbdev/omap/sossi.c

index e32694c13da56d0cd1ae87b0a2cd48dfc3917030..a003e02e13ce3e1355e56ed416fd739306497219 100644 (file)
@@ -211,8 +211,8 @@ config BACKLIGHT_LOCOMO
 
 config BACKLIGHT_OMAP1
        tristate "OMAP1 PWL-based LCD Backlight"
-       depends on ARCH_OMAP1
-       default y
+       depends on ARCH_OMAP1 || COMPILE_TEST
+       default ARCH_OMAP1
        help
          This driver controls the LCD backlight level and power for
          the PWL module of OMAP1 processors.  Say Y if your board
index 74263021b1b37ecc535087a12de319f2b8880a2b..69a49384b3de42aa26cbf0569c265acdbfa586b5 100644 (file)
@@ -14,8 +14,8 @@
 #include <linux/slab.h>
 #include <linux/platform_data/omap1_bl.h>
 
-#include <mach/hardware.h>
-#include <mach/mux.h>
+#include <linux/soc/ti/omap1-io.h>
+#include <linux/soc/ti/omap1-mux.h>
 
 #define OMAPBL_MAX_INTENSITY           0xff
 
index df2a5d0d4aa27ee8e3a766591a159893ecb16ffa..b1786cf1b486e48e59961460ef9344e5972a9875 100644 (file)
@@ -2,7 +2,7 @@
 config FB_OMAP
        tristate "OMAP frame buffer support"
        depends on FB
-       depends on ARCH_OMAP1
+       depends on ARCH_OMAP1 || (ARM && COMPILE_TEST)
        select FB_CFB_FILLRECT
        select FB_CFB_COPYAREA
        select FB_CFB_IMAGEBLIT
@@ -42,7 +42,7 @@ config FB_OMAP_LCD_MIPID
 
 config FB_OMAP_LCD_H3
        bool "TPS65010 LCD controller on OMAP-H3"
-       depends on MACH_OMAP_H3
+       depends on MACH_OMAP_H3 || COMPILE_TEST
        depends on TPS65010=y
        default y
        help
index 1bdfd14e9b7540aaceb23fc56f4a9346f6e3e3c1..6f860c814d2cf0fa687e48af5a5cdd77ff74b2f0 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/gpio/consumer.h>
 #include <linux/lcd.h>
 
-#include <mach/hardware.h>
+#include <linux/soc/ti/omap1-io.h>
 
 #include "omapfb.h"
 
index 867a63c06f4293fc22ea246d3f046cac2962d9cd..f85817635a8c2c8a28a82b19316b51eff61c0e0c 100644 (file)
@@ -25,7 +25,8 @@
 
 #include <linux/omap-dma.h>
 
-#include <mach/hardware.h>
+#include <linux/soc/ti/omap1-soc.h>
+#include <linux/soc/ti/omap1-io.h>
 
 #include "lcdc.h"
 #include "lcd_dma.h"
index 37ed0c14aa5aab0fdcb72d8a041f58c66dc56e04..bb915637e9b696fb7d605783d32c88f68a89a079 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/platform_device.h>
 #include <linux/io.h>
 
-#include <mach/hardware.h>
+#include <linux/soc/ti/omap1-soc.h>
 
 #include "omapfb.h"
 
index 5d5762128c8dc285f51d10d786a2e0a99c22d2f6..8168ba0d47fd39b6137c3d2be6a8b07929bcfdcb 100644 (file)
@@ -11,8 +11,8 @@
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
 
-#include <mach/hardware.h>
-#include <mach/mux.h>
+#include <linux/soc/ti/omap1-io.h>
+#include <linux/soc/ti/omap1-mux.h>
 
 #include "omapfb.h"
 
index d9731d12bd7209dcf41c26c330297f7443097b12..4c9091bd936d1687510eaaa3c3f1b28ebafb3f3d 100644 (file)
@@ -17,6 +17,8 @@
 #include <linux/clk.h>
 #include <linux/gfp.h>
 
+#include <linux/soc/ti/omap1-io.h>
+#include <linux/soc/ti/omap1-soc.h>
 #include <linux/omap-dma.h>
 
 #include <asm/mach-types.h>
index b8fd509f11e490fbe37795c2549b574866f175e2..292fcb0a24fc90e1a1b42b527820812473200032 100644 (file)
@@ -20,8 +20,7 @@
 
 #include <linux/omap-dma.h>
 
-#include <mach/hardware.h>
-
+#include <linux/soc/ti/omap1-soc.h>
 #include "omapfb.h"
 #include "lcdc.h"
 
index ade9d452254cf1bc82e20a25d7d6f30697128e0b..6b99d89fbe6ee70ecdcbb172475457256d49c3fb 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/interrupt.h>
 
 #include <linux/omap-dma.h>
+#include <linux/soc/ti/omap1-io.h>
 
 #include "omapfb.h"
 #include "lcd_dma.h"