pr_err("%s: kzalloc error\n",__func__);\r
return -ENOMEM;\r
}\r
+ if(mutex_trylock(&dev_data->lock)==0){\r
+ pr_err("%s: lm36923 dev is busy\n",__func__);\r
+ goto exit;\r
+ }\r
+ ret = backlight_i2c_write(dev_data, LM_PWMCTL_REG, 0xEE);\r
+ if(ret < 0) {\r
+ pr_err("%s: write new value[0xEE] to reg[0x%x] error\n", __func__, LM_PWMCTL_REG);\r
+ }\r
+ mutex_unlock(&dev_data->lock);\r
+\r
pr_info("%s:now write mode to %d\n",__func__,dev_data->mode);\r
if(1 == dev_data->mode){\r
if(mutex_trylock(&dev_data->lock)==0){\r
if(ret < 0){\r
pr_err("%s:NR mode:write lm chip MSB error\n",__func__);\r
}\r
+ ret = backlight_i2c_write(lm, LM_PWMCTL_REG, 0xEE);\r
+ if(ret < 0) {\r
+ pr_err("%s: write new value[0xEE] to reg[0x%x] error\n", __func__, LM_PWMCTL_REG);\r
+ }\r
mutex_unlock(&lm->lock);\r
}\r
else{\r