diff options
| author | Richard Fitzgerald <rf@opensource.wolfsonmicro.com> | 2015-05-13 11:52:25 -0400 |
|---|---|---|
| committer | Lee Jones <lee.jones@linaro.org> | 2015-06-22 07:25:18 -0400 |
| commit | 7e2d67e94ab05f70d2a73d00283f46778386ca52 (patch) | |
| tree | 9a01cc27b86185b8be2b29624f6b4e7b614d9ad2 /include/linux/mfd | |
| parent | ec40c606c7aebb8d61cb47af27e2f62c26e09e29 (diff) | |
mfd: arizona: Add stub for wm5102_patch()
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>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/arizona/core.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/core.h b/include/linux/mfd/arizona/core.h index 847bdaf47f1d..2f434f4f79a1 100644 --- a/include/linux/mfd/arizona/core.h +++ b/include/linux/mfd/arizona/core.h | |||
| @@ -154,7 +154,15 @@ int arizona_request_irq(struct arizona *arizona, int irq, char *name, | |||
| 154 | void arizona_free_irq(struct arizona *arizona, int irq, void *data); | 154 | void arizona_free_irq(struct arizona *arizona, int irq, void *data); |
| 155 | int arizona_set_irq_wake(struct arizona *arizona, int irq, int on); | 155 | int arizona_set_irq_wake(struct arizona *arizona, int irq, int on); |
| 156 | 156 | ||
| 157 | #ifdef CONFIG_MFD_WM5102 | ||
| 157 | int wm5102_patch(struct arizona *arizona); | 158 | int wm5102_patch(struct arizona *arizona); |
| 159 | #else | ||
| 160 | static inline int wm5102_patch(struct arizona *arizona) | ||
| 161 | { | ||
| 162 | return 0; | ||
| 163 | } | ||
| 164 | #endif | ||
| 165 | |||
| 158 | int wm5110_patch(struct arizona *arizona); | 166 | int wm5110_patch(struct arizona *arizona); |
| 159 | int wm8997_patch(struct arizona *arizona); | 167 | int wm8997_patch(struct arizona *arizona); |
| 160 | 168 | ||
