ARM: OMAP1: move omap1_bl pdata out of arch/arm/*
authorIgor Grinberg <grinberg@compulab.co.il>
Tue, 28 Aug 2012 23:18:54 +0000 (02:18 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 10 Sep 2012 23:34:00 +0000 (16:34 -0700)
omap1 backlight platform data resides inside plat/board.h while it
should be inside include/linux/...
Move the omap1 backlight platform data to
include/linux/platform_data/.

Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-osk.c
arch/arm/mach-omap1/board-palmte.c
arch/arm/mach-omap1/board-palmtt.c
arch/arm/mach-omap1/board-palmz71.c
arch/arm/plat-omap/include/plat/board.h
drivers/video/backlight/omap1_bl.c
include/linux/platform_data/omap1_bl.h [new file with mode: 0644]

index 8784705edb60135aac86a8bc660b02a8e1f284f5..569b6872a2f646778c1999d0734064316b63d3c9 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/physmap.h>
 #include <linux/i2c/tps65010.h>
+#include <linux/platform_data/omap1_bl.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
index 26bcb9defcdc830ff7ae97d8667cef70b956b598..7bf00ba51bd63d4288ca1b6df4e6da433d66419a 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/interrupt.h>
 #include <linux/apm-emulation.h>
 #include <linux/omapfb.h>
+#include <linux/platform_data/omap1_bl.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
index 4d099446dfa888e1898227d35eb260e9ee8b203f..2cce505dd8f6e7d7166aaf6390fc25819e0814fb 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/omapfb.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/ads7846.h>
+#include <linux/platform_data/omap1_bl.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
index 355980321c2d19f91ecb55c2dd5b7b1a9c7f67dd..45ab9f03fb85ec65fcce6d2e778845cdfec28738 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/omapfb.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/ads7846.h>
+#include <linux/platform_data/omap1_bl.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
index 5938c729b6c0bd826a0590e1f63d3738f29b6e61..d0bc46e235bcecb041be139ac2e4001a45b7e0f0 100644 (file)
@@ -19,13 +19,6 @@ struct omap_lcd_config {
        u8   data_lines;
 };
 
-struct device;
-struct fb_info;
-struct omap_backlight_config {
-       int default_intensity;
-       int (*set_power)(struct device *dev, int state);
-};
-
 /* for TI reference platforms sharing the same debug card */
 extern int debug_card_init(u32 addr, unsigned gpio);
 
index bfdc5fbeaa116aa7e919c191eac4dcac2f3985bc..92257ef194036c2344b30c581cb5d534d9a49ce0 100644 (file)
@@ -27,9 +27,9 @@
 #include <linux/fb.h>
 #include <linux/backlight.h>
 #include <linux/slab.h>
+#include <linux/platform_data/omap1_bl.h>
 
 #include <mach/hardware.h>
-#include <plat/board.h>
 #include <plat/mux.h>
 
 #define OMAPBL_MAX_INTENSITY           0xff
diff --git a/include/linux/platform_data/omap1_bl.h b/include/linux/platform_data/omap1_bl.h
new file mode 100644 (file)
index 0000000..881a8e9
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef __OMAP1_BL_H__
+#define __OMAP1_BL_H__
+
+#include <linux/device.h>
+
+struct omap_backlight_config {
+       int default_intensity;
+       int (*set_power)(struct device *dev, int state);
+};
+
+#endif