video: use __weak

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
master
Jeroen Hofstee 10 years ago committed by Tom Rini
parent 3dd80aae3a
commit 69d2754588
  1. 10
      drivers/video/cfb_console.c
  2. 32
      drivers/video/exynos_fb.c

@ -1171,14 +1171,11 @@ void video_puts(struct stdio_dev *dev, const char *s)
* video_set_lut() if they do not support 8 bpp format.
* Implement weak default function instead.
*/
void __video_set_lut(unsigned int index, unsigned char r,
__weak void video_set_lut(unsigned int index, unsigned char r,
unsigned char g, unsigned char b)
{
}
void video_set_lut(unsigned int, unsigned char, unsigned char, unsigned char)
__attribute__ ((weak, alias("__video_set_lut")));
#if defined(CONFIG_CMD_BMP) || defined(CONFIG_SPLASH_SCREEN)
#define FILL_8BIT_332RGB(r,g,b) { \
@ -2240,15 +2237,12 @@ static int video_init(void)
* Implement a weak default function for boards that optionally
* need to skip the video initialization.
*/
int __board_video_skip(void)
__weak int board_video_skip(void)
{
/* As default, don't skip test */
return 0;
}
int board_video_skip(void)
__attribute__ ((weak, alias("__board_video_skip")));
int drv_video_init(void)
{
int skip_dev_init;

@ -58,54 +58,38 @@ static void exynos_lcd_init(vidinfo_t *vid)
lcd_set_flush_dcache(1);
}
void __exynos_cfg_lcd_gpio(void)
__weak void exynos_cfg_lcd_gpio(void)
{
}
void exynos_cfg_lcd_gpio(void)
__attribute__((weak, alias("__exynos_cfg_lcd_gpio")));
void __exynos_backlight_on(unsigned int onoff)
__weak void exynos_backlight_on(unsigned int onoff)
{
}
void exynos_backlight_on(unsigned int onoff)
__attribute__((weak, alias("__exynos_cfg_lcd_gpio")));
void __exynos_reset_lcd(void)
__weak void exynos_reset_lcd(void)
{
}
void exynos_reset_lcd(void)
__attribute__((weak, alias("__exynos_reset_lcd")));
void __exynos_lcd_power_on(void)
__weak void exynos_lcd_power_on(void)
{
}
void exynos_lcd_power_on(void)
__attribute__((weak, alias("__exynos_lcd_power_on")));
void __exynos_cfg_ldo(void)
__weak void exynos_cfg_ldo(void)
{
}
void exynos_cfg_ldo(void)
__attribute__((weak, alias("__exynos_cfg_ldo")));
void __exynos_enable_ldo(unsigned int onoff)
__weak void exynos_enable_ldo(unsigned int onoff)
{
}
void exynos_enable_ldo(unsigned int onoff)
__attribute__((weak, alias("__exynos_enable_ldo")));
void __exynos_backlight_reset(void)
__weak void exynos_backlight_reset(void)
{
}
void exynos_backlight_reset(void)
__attribute__((weak, alias("__exynos_backlight_reset")));
int __exynos_lcd_misc_init(vidinfo_t *vid)
__weak int exynos_lcd_misc_init(vidinfo_t *vid)
{
return 0;
}
int exynos_lcd_misc_init(vidinfo_t *vid)
__attribute__((weak, alias("__exynos_lcd_misc_init")));
static void lcd_panel_on(vidinfo_t *vid)
{

Loading…
Cancel
Save