From: 黄涛 Date: Sun, 30 Dec 2012 10:20:27 +0000 (+0800) Subject: rk30: ds1001b: remove PWM_APB_PRE_DIV on rk2818_backlight.h X-Git-Tag: firefly_0821_release~8034 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b66704779d0419c5fdd39026db36bdc478077d3b;p=firefly-linux-kernel-4.4.55.git rk30: ds1001b: remove PWM_APB_PRE_DIV on rk2818_backlight.h --- diff --git a/arch/arm/mach-rk30/board-rk30-ds1001b.c b/arch/arm/mach-rk30/board-rk30-ds1001b.c index 0fa8d94dacc2..9c2b64fe1acf 100644 --- a/arch/arm/mach-rk30/board-rk30-ds1001b.c +++ b/arch/arm/mach-rk30/board-rk30-ds1001b.c @@ -646,7 +646,8 @@ static struct rk29_bl_info rk29_bl_info = { .io_deinit = rk29_backlight_io_deinit, .pwm_suspend = rk29_backlight_pwm_suspend, .pwm_resume = rk29_backlight_pwm_resume, - .min_brightness = 60 + .min_brightness = 60, + .pre_div = 20000, }; static struct platform_device rk29_device_backlight = { diff --git a/drivers/video/backlight/rk2818_backlight.h b/drivers/video/backlight/rk2818_backlight.h index e0804ae839cf..0ce4039e9a9d 100644 --- a/drivers/video/backlight/rk2818_backlight.h +++ b/drivers/video/backlight/rk2818_backlight.h @@ -35,11 +35,7 @@ #define PWM_DIV PWM_DIV2 -#ifdef CONFIG_MACH_RK30_DS1001B -#define PWM_APB_PRE_DIV 20000 -#else #define PWM_APB_PRE_DIV 1000 -#endif #define BL_STEP 255 #endif /* __ASM_ARCH_RK2818_BACKLIGHT_H */