From e20cd0d3eb6ce5abf1e749261a89b32cd95f79b2 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Mon, 24 Aug 2009 01:55:35 +0800 Subject: [PATCH] fix a redefine warning, GPIO_PWM defined in board-qi_lb60.c file Signed-off-by: Xiangfu Liu --- target/linux/xburst/files-2.6.31/drivers/video/jzlcd.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target/linux/xburst/files-2.6.31/drivers/video/jzlcd.h b/target/linux/xburst/files-2.6.31/drivers/video/jzlcd.h index 3676b9bc6..8a3d855e0 100755 --- a/target/linux/xburst/files-2.6.31/drivers/video/jzlcd.h +++ b/target/linux/xburst/files-2.6.31/drivers/video/jzlcd.h @@ -656,14 +656,13 @@ do { \ /*#if defined(CONFIG_JZ4740_LEO) || defined(CONFIG_JZ4740_PAVO)*/ #if defined(CONFIG_SOC_JZ4740) #if defined(CONFIG_JZ4740_PAVO) || defined(CONFIG_JZ4740_LYRA) -#define GPIO_PWM 123 /* GP_D27 */ #define PWM_CHN 4 /* pwm channel */ #define PWM_FULL 101 /* 100 level: 0,1,...,100 */ #define __lcd_set_backlight_level(n)\ do { \ -__gpio_as_output(32*3+27); \ -__gpio_set_pin(32*3+27); \ +__gpio_as_output(GPIO_PWM); \ +__gpio_set_pin(GPIO_PWM); \ } while (0) #define __lcd_close_backlight() \