mfd: wm831x: Don't forward declare enum wm831x_auxadc
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 Mar 2013 02:47:21 +0000 (10:47 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 12 Mar 2013 08:29:20 +0000 (09:29 +0100)
We can't forward declare enums.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/linux/mfd/wm831x/auxadc.h
include/linux/mfd/wm831x/core.h

index b132067..867aa23 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef __MFD_WM831X_AUXADC_H__
 #define __MFD_WM831X_AUXADC_H__
 
+struct wm831x;
+
 /*
  * R16429 (0x402D) - AuxADC Data
  */
index 4a3b83a..76c2264 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/irqdomain.h>
 #include <linux/list.h>
 #include <linux/regmap.h>
+#include <linux/mfd/wm831x/auxadc.h>
 
 /*
  * Register values.
@@ -355,7 +356,6 @@ enum wm831x_parent {
 };
 
 struct wm831x;
-enum wm831x_auxadc;
 
 typedef int (*wm831x_auxadc_read_fn)(struct wm831x *wm831x,
                                     enum wm831x_auxadc input);