ARM: pxa: move declarations to proper place
authorWolfram Sang <wsa@the-dreams.de>
Mon, 13 Nov 2017 17:27:38 +0000 (18:27 +0100)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Tue, 28 Nov 2017 21:47:22 +0000 (22:47 +0100)
Platform data is not the right place for such declarations, use
devices.h in the mach-directory where the rest is located. Note that the
some board files needed an additional include for this to work.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/devices.h
arch/arm/mach-pxa/littleton.c
arch/arm/mach-pxa/xcep.c
arch/arm/mach-pxa/zeus.c
arch/arm/mach-pxa/zylonite_pxa300.c
include/linux/i2c/pxa-i2c.h

index 905628dfbbbb3178fbf40fe921dc098e020928b2..11263f7c455bae2bbcd192dfcb3e3c444c632c1b 100644 (file)
@@ -56,3 +56,12 @@ extern struct platform_device pxa93x_device_gpio;
 
 void __init pxa_register_device(struct platform_device *dev, void *data);
 void __init pxa2xx_set_dmac_info(int nb_channels, int nb_requestors);
+
+struct i2c_pxa_platform_data;
+extern void pxa_set_i2c_info(struct i2c_pxa_platform_data *info);
+#ifdef CONFIG_PXA27x
+extern void pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info);
+#endif
+#ifdef CONFIG_PXA3xx
+extern void pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info);
+#endif
index fae38fdc8d8e5672caf4298d51b4db6866e95ce1..23aea72b4117ce7b8d9fb21d9efa8a67c6a0d3c2 100644 (file)
@@ -42,6 +42,7 @@
 #include <asm/mach/irq.h>
 
 #include "pxa300.h"
+#include "devices.h"
 #include <linux/platform_data/video-pxafb.h>
 #include <linux/platform_data/mmc-pxamci.h>
 #include <linux/platform_data/keypad-pxa27x.h>
index 056369ef250e8a4447b592efbd0775b0b7b3710f..fa21951bc9f041a00e37f23da37627ade8902114 100644 (file)
@@ -32,6 +32,7 @@
 #include <mach/smemc.h>
 
 #include "generic.h"
+#include "devices.h"
 
 #define XCEP_ETH_PHYS          (PXA_CS3_PHYS + 0x00000300)
 #define XCEP_ETH_PHYS_END      (PXA_CS3_PHYS + 0x000fffff)
index ecbcaee5a2d5f8980c6946853cd638da78fd6838..8b16ba46c8c3bf9a873dab666f7440389342a2c4 100644 (file)
@@ -40,6 +40,7 @@
 #include <asm/mach/map.h>
 
 #include "pxa27x.h"
+#include "devices.h"
 #include <mach/regs-uart.h>
 #include <linux/platform_data/usb-ohci-pxa27x.h>
 #include <linux/platform_data/mmc-pxamci.h>
index e247acf1400a9059eb68ebf4e67778ca453acccb..4fb1c556499a8272255340497b8ce1b973d28a39 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/gpio.h>
 
 #include "pxa300.h"
+#include "devices.h"
 #include "zylonite.h"
 
 #include "generic.h"
index 53aab243cbd83437e60caef39ef39502bba9f5ce..5236f216dfaefd46fc5d8187f66cf430e89640cc 100644 (file)
@@ -71,15 +71,4 @@ struct i2c_pxa_platform_data {
        unsigned char           master_code;
        unsigned long           rate;
 };
-
-extern void pxa_set_i2c_info(struct i2c_pxa_platform_data *info);
-
-#ifdef CONFIG_PXA27x
-extern void pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info);
-#endif
-
-#ifdef CONFIG_PXA3xx
-extern void pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info);
-#endif
-
 #endif