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

[ARM] corgi_lcd: fix simultaneous compilation with corgi_bl

corgi_lcd has symbol conflict with corgi_bl driver.
Fix it by renaming common symbol in new corgi_lcd driver.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>

authored by

Dmitry Baryshkov and committed by
Eric Miao
5cbff960 b6e642e4

+9 -4
+3 -1
arch/arm/mach-pxa/corgi_pm.c
··· 204 204 .read_devdata = corgipm_read_devdata, 205 205 .charger_wakeup = corgi_charger_wakeup, 206 206 .should_wakeup = corgi_should_wakeup, 207 - #ifdef CONFIG_BACKLIGHT_CORGI 207 + #if defined(CONFIG_LCD_CORGI) 208 + .backlight_limit = corgi_lcd_limit_intensity, 209 + #elif defined(CONFIG_BACKLIGHT_CORGI) 208 210 .backlight_limit = corgibl_limit_intensity, 209 211 #endif 210 212 .charge_on_volt = SHARPSL_CHARGE_ON_VOLT,
+1
arch/arm/mach-pxa/include/mach/sharpsl.h
··· 26 26 * SharpSL Backlight 27 27 */ 28 28 extern void corgibl_limit_intensity(int limit); 29 + extern void corgi_lcd_limit_intensity(int limit); 29 30 30 31 31 32 /*
+3 -1
arch/arm/mach-pxa/spitz_pm.c
··· 198 198 .read_devdata = spitzpm_read_devdata, 199 199 .charger_wakeup = spitz_charger_wakeup, 200 200 .should_wakeup = spitz_should_wakeup, 201 - #ifdef CONFIG_BACKLIGHT_CORGI 201 + #if defined(CONFIG_LCD_CORGI) 202 + .backlight_limit = corgi_lcd_limit_intensity, 203 + #elif defined(CONFIG_BACKLIGHT_CORGI) 202 204 .backlight_limit = corgibl_limit_intensity, 203 205 #endif 204 206 .charge_on_volt = SHARPSL_CHARGE_ON_VOLT,
+2 -2
drivers/video/backlight/corgi_lcd.c
··· 439 439 return corgi_bl_set_intensity(lcd, intensity); 440 440 } 441 441 442 - void corgibl_limit_intensity(int limit) 442 + void corgi_lcd_limit_intensity(int limit) 443 443 { 444 444 if (limit) 445 445 corgibl_flags |= CORGIBL_BATTLOW; ··· 448 448 449 449 backlight_update_status(the_corgi_lcd->bl_dev); 450 450 } 451 - EXPORT_SYMBOL(corgibl_limit_intensity); 451 + EXPORT_SYMBOL(corgi_lcd_limit_intensity); 452 452 453 453 static struct backlight_ops corgi_bl_ops = { 454 454 .get_brightness = corgi_bl_get_intensity,