Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | /* |
2 | * Copyright (C) 2010 MediaTek, Inc. | |
3 | * | |
4 | * Author: Terry Chang <terry.chang@mediatek.com> | |
5 | * | |
6 | * This software is licensed under the terms of the GNU General Public | |
7 | * License version 2, as published by the Free Software Foundation, and | |
8 | * may be copied, distributed, and modified under those terms. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
15 | */ | |
16 | ||
17 | #include <mach/mt_typedefs.h> | |
18 | #include <mtk_kpd.h> /* custom file */ | |
19 | ||
20 | #if KPD_DRV_CTRL_BACKLIGHT | |
21 | void kpd_enable_backlight(void) | |
22 | { | |
23 | /*mt6326_kpled_dim_duty_Full(); | |
24 | mt6326_kpled_Enable();*/ | |
25 | } | |
26 | ||
27 | void kpd_disable_backlight(void) | |
28 | { | |
29 | /*mt6326_kpled_dim_duty_0(); | |
30 | mt6326_kpled_Disable();*/ | |
31 | } | |
32 | #endif | |
33 | ||
34 | /* for META tool */ | |
35 | void kpd_set_backlight(bool onoff, void *val1, void *val2) | |
36 | { | |
37 | /*u8 div = *(u8 *)val1; | |
38 | u8 duty = *(u8 *)val2; | |
39 | ||
40 | if (div > 15) | |
41 | div = 15; | |
42 | pmic_kp_dim_div(div); | |
43 | ||
44 | if (duty > 31) | |
45 | duty = 31; | |
46 | pmic_kp_dim_duty(duty); | |
47 | ||
48 | if (onoff) | |
49 | mt6326_kpled_Enable(); | |
50 | else | |
51 | mt6326_kpled_Disable();*/ | |
52 | } |