int FL_step(kal_uint32 step) { /* int sTab[8]={0,2,4,6,9,11,13,15}; deleted and */ step = 5; // added upmu_set_flash_sel(step); // (sTab[step]) --> (step) return 0; }
int FL_init(void) { upmu_set_flash_dim_duty(0); upmu_set_flash_sel(0); FL_disable(); INIT_WORK(&workTimeOut, work_timeOutFunc); return 0; }
int FL_init(void) { PK_DBG("FL_init\n"); #if 0 upmu_set_flash_dim_duty(0); upmu_set_flash_sel(0); FL_disable(); #else if(adp1650_i2c_client == NULL) { return 0; } adp1650_write_reg(adp1650_i2c_client, 0x04, 0xAC); //75ma torch output_en #endif INIT_WORK(&workTimeOut, work_timeOutFunc); return 0; }
int FL_step(kal_uint32 step) { int sTab[8]={0,2,4,6,9,11,13,15}; upmu_set_flash_sel(sTab[step]); return 0; }