]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mfd: arizona: Add stub for wm5102_patch()
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 13 May 2015 15:52:25 +0000 (16:52 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 22 Jun 2015 11:25:18 +0000 (12:25 +0100)
For the WM5102 there is a dependency in the core code on wm5102_patch()
which only exists when CONFIG_MFD_WM5102 is defined. To avoid having
to sprinkle #ifdefs around the code it is given an alternative empty
stub version when CONFIG_MFD_WM5102 is deselected

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/mfd/arizona/core.h

index 847bdaf47f1d40630748c9b37c1866593be3ca12..2f434f4f79a1ebd1ce06383afc0522a150f75600 100644 (file)
@@ -154,7 +154,15 @@ int arizona_request_irq(struct arizona *arizona, int irq, char *name,
 void arizona_free_irq(struct arizona *arizona, int irq, void *data);
 int arizona_set_irq_wake(struct arizona *arizona, int irq, int on);
 
+#ifdef CONFIG_MFD_WM5102
 int wm5102_patch(struct arizona *arizona);
+#else
+static inline int wm5102_patch(struct arizona *arizona)
+{
+       return 0;
+}
+#endif
+
 int wm5110_patch(struct arizona *arizona);
 int wm8997_patch(struct arizona *arizona);