Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: Move PCF50633 IRQ protoypes where the definitions can see them

Fixed warnings about unprototyped global functions.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Mark Brown and committed by
Samuel Ortiz
f337134f c9e2a72f

+7 -7
-7
drivers/mfd/pcf50633-core.c
··· 25 25 26 26 #include <linux/mfd/pcf50633/core.h> 27 27 28 - int pcf50633_irq_init(struct pcf50633 *pcf, int irq); 29 - void pcf50633_irq_free(struct pcf50633 *pcf); 30 - #ifdef CONFIG_PM 31 - int pcf50633_irq_suspend(struct pcf50633 *pcf); 32 - int pcf50633_irq_resume(struct pcf50633 *pcf); 33 - #endif 34 - 35 28 static int __pcf50633_read(struct pcf50633 *pcf, u8 reg, int num, u8 *data) 36 29 { 37 30 int ret;
+7
include/linux/mfd/pcf50633/core.h
··· 227 227 return dev_get_drvdata(dev); 228 228 } 229 229 230 + int pcf50633_irq_init(struct pcf50633 *pcf, int irq); 231 + void pcf50633_irq_free(struct pcf50633 *pcf); 232 + #ifdef CONFIG_PM 233 + int pcf50633_irq_suspend(struct pcf50633 *pcf); 234 + int pcf50633_irq_resume(struct pcf50633 *pcf); 235 + #endif 236 + 230 237 #endif