2 * Copyright (C) 2010 MediaTek, Inc.
4 * Author: Terry Chang <terry.chang@mediatek.com>
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.
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.
17 #include <mach/mt_typedefs.h>
18 #include <mtk_kpd.h> /* custom file */
20 #if KPD_DRV_CTRL_BACKLIGHT
21 void kpd_enable_backlight(void)
23 /*mt6326_kpled_dim_duty_Full();
24 mt6326_kpled_Enable();*/
27 void kpd_disable_backlight(void)
29 /*mt6326_kpled_dim_duty_0();
30 mt6326_kpled_Disable();*/
35 void kpd_set_backlight(bool onoff
, void *val1
, void *val2
)
37 /*u8 div = *(u8 *)val1;
38 u8 duty = *(u8 *)val2;
46 pmic_kp_dim_duty(duty);
49 mt6326_kpled_Enable();
51 mt6326_kpled_Disable();*/