mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-13 17:19:39 +02:00

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>
21 lines
421 B
C
21 lines
421 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_SPI_CORGI_LCD_H
|
|
#define __LINUX_SPI_CORGI_LCD_H
|
|
|
|
#define CORGI_LCD_MODE_QVGA 1
|
|
#define CORGI_LCD_MODE_VGA 2
|
|
|
|
struct corgi_lcd_platform_data {
|
|
int init_mode;
|
|
int max_intensity;
|
|
int default_intensity;
|
|
int limit_mask;
|
|
|
|
void (*notify)(int intensity);
|
|
void (*kick_battery)(void);
|
|
};
|
|
|
|
void corgi_lcd_limit_intensity(int limit);
|
|
|
|
#endif /* __LINUX_SPI_CORGI_LCD_H */
|