[PATCH 05/14] sta2x11-mfd : make enum sta2x11_mfd_plat_dev public

From: Davide Ciminaghi
Date: Sun Jun 10 2012 - 20:59:39 EST


From: Davide Ciminaghi <ciminaghi@xxxxxxxxx>

This is needed to implement the sta2x11_xxxx_mask() functions as static
inlines invoking a common __sta2x11_mfd_mask.

Signed-off-by: Davide Ciminaghi <ciminaghi@xxxxxxxxx>
---
drivers/mfd/sta2x11-mfd.c | 7 -------
include/linux/mfd/sta2x11-mfd.h | 7 +++++++
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c
index 744bdd0..1aa9c78 100644
--- a/drivers/mfd/sta2x11-mfd.c
+++ b/drivers/mfd/sta2x11-mfd.c
@@ -35,13 +35,6 @@

#include <asm/sta2x11.h>

-enum sta2x11_mfd_plat_dev {
- sta2x11_sctl = 0,
- sta2x11_apbreg = 1,
- sta2x11_apb_soc_regs = 2,
- sta2x11_n_mfd_plat_devs,
-};
-
/* This describes STA2X11 MFD chip for us, we may have several */
struct sta2x11_mfd {
struct sta2x11_instance *instance;
diff --git a/include/linux/mfd/sta2x11-mfd.h b/include/linux/mfd/sta2x11-mfd.h
index d179227..2867d55 100644
--- a/include/linux/mfd/sta2x11-mfd.h
+++ b/include/linux/mfd/sta2x11-mfd.h
@@ -26,6 +26,13 @@
#include <linux/types.h>
#include <linux/pci.h>

+enum sta2x11_mfd_plat_dev {
+ sta2x11_sctl = 0,
+ sta2x11_apbreg = 1,
+ sta2x11_apb_soc_regs = 2,
+ sta2x11_n_mfd_plat_devs,
+};
+
/*
* The MFD PCI block includes the GPIO peripherals and other register blocks.
* For GPIO, we have 32*4 bits (I use "gsta" for "gpio sta2x11".)
--
1.7.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/