backlight: corgi_lcd: fix missing prototype
authorArnd Bergmann <arnd@arndb.de>
Sun, 19 Mar 2023 21:29:28 +0000 (22:29 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 27 Jul 2023 13:39:17 +0000 (15:39 +0200)
commit09eadda27ca4afc3f560efea265bbe7a93ef786d
treee529d0293cc38b1f1a1c06db2aef7c02c85d4571
parent92d39d018347ead1078dcba3cb1d8aeb9de79e04
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>
arch/arm/mach-pxa/sharpsl_pm.h
arch/arm/mach-pxa/spitz_pm.c
include/linux/spi/corgi_lcd.h