Skip to content

Commit 09eadda

Browse files
committed
backlight: corgi_lcd: fix missing prototype
The corgi_lcd_limit_intensity() function is called from platform and defined in a driver, but the driver does not see the declaration: drivers/video/backlight/corgi_lcd.c:434:6: error: no previous prototype for 'corgi_lcd_limit_intensity' [-Werror=missing-prototypes] 434 | void corgi_lcd_limit_intensity(int limit) Move the prototype into a header that can be included from both sides to shut up the warning. Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 92d39d0 commit 09eadda

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

arch/arm/mach-pxa/sharpsl_pm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,4 @@ void sharpsl_pm_led(int val);
105105
#define MAX1111_ACIN_VOLT 6u
106106
int sharpsl_pm_pxa_read_max1111(int channel);
107107

108-
void corgi_lcd_limit_intensity(int limit);
109108
#endif

arch/arm/mach-pxa/spitz_pm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/interrupt.h>
1616
#include <linux/platform_device.h>
1717
#include <linux/apm-emulation.h>
18+
#include <linux/spi/corgi_lcd.h>
1819

1920
#include <asm/irq.h>
2021
#include <asm/mach-types.h>

include/linux/spi/corgi_lcd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ struct corgi_lcd_platform_data {
1515
void (*kick_battery)(void);
1616
};
1717

18+
void corgi_lcd_limit_intensity(int limit);
19+
1820
#endif /* __LINUX_SPI_CORGI_LCD_H */

0 commit comments

Comments
 (0)