rk2928_defconfig: module_param: ls_type, key_adc, ps_type
authorkfx <kfx@rock-chips.com>
Sat, 1 Dec 2012 07:27:32 +0000 (15:27 +0800)
committerkfx <kfx@rock-chips.com>
Sat, 1 Dec 2012 07:27:32 +0000 (15:27 +0800)
arch/arm/mach-rk2928/board-rk2928-config.c

index 125d498820bba55a6fe57c01f361096fef0e9734..e533ad17d67f48995fbeeca0aff0578b1cc66054 100644 (file)
@@ -69,6 +69,7 @@ static struct pmu_info act8931_ldo_info[] = {
 /*************************************** parameter ******************************************/
 /* keyboard */
 uint key_adc = DEF_KEY_ADC;
+module_param(key_adc, uint, 0644);
 uint key_val_size = 7;
 uint key_val[] = {DEF_PLAY_KEY, DEF_VOLDN_KEY, DEF_VOLUP_KEY, DEF_MENU_KEY, DEF_ESC_KEY, DEF_HOME_KEY, DEF_CAM_KEY};
 module_param_array(key_val, uint, &key_val_size, 0644);
@@ -198,7 +199,7 @@ static inline int check_gs_param(void)
 }
 /* lsensor */
 static int ls_type = DEF_LS_TYPE;
-
+module_param(ls_type, int, 0644);
 static int ls_i2c = DEF_LS_I2C;
 module_param(ls_i2c, int, 0644);
 static int ls_addr = DEF_LS_ADDR;
@@ -230,7 +231,7 @@ static inline int check_ls_param(void)
 
 /* psensor */
 static int ps_type = DEF_PS_TYPE;
-
+module_param(ps_type, int, 0644);
 static int ps_i2c = DEF_PS_I2C;
 module_param(ps_i2c, int, 0644);
 static int ps_addr = DEF_PS_ADDR;