projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
538ff14
)
A22:keep tp reset high when resume to reduce current
author
root
<root@lw.(none)>
Tue, 14 Jun 2011 11:35:18 +0000
(19:35 +0800)
committer
root
<root@lw.(none)>
Tue, 14 Jun 2011 11:36:12 +0000
(19:36 +0800)
drivers/input/touchscreen/ili2102_ts.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/ili2102_ts.c
b/drivers/input/touchscreen/ili2102_ts.c
index cc6f978758eeb0aa649585d53d22fb9a5b6d8ad8..6000f2c7dd740c6f6f71ede25ec3fe76d5ff561b 100755
(executable)
--- a/
drivers/input/touchscreen/ili2102_ts.c
+++ b/
drivers/input/touchscreen/ili2102_ts.c
@@
-285,6
+285,8
@@
static int verify_coord(struct ili2102_ts_data *ts,unsigned int *x,unsigned int
}
static int ili2102_init_panel(struct ili2102_ts_data *ts)
{
+ gpio_set_value(ts->gpio_reset, ts->gpio_reset_active_low? GPIO_LOW:GPIO_HIGH);
+ mdelay(1);
gpio_set_value(ts->gpio_reset, ts->gpio_reset_active_low? GPIO_HIGH:GPIO_LOW);
return 0;
}
@@
-786,8
+788,6
@@
static int ili2102_ts_suspend(struct i2c_client *client, pm_message_t mesg)
if (ret < 0) {
printk("%s:err\n",__FUNCTION__);
}
-
- gpio_set_value(ts->gpio_reset, ts->gpio_reset_active_low? GPIO_LOW:GPIO_HIGH);
DBG("%s\n",__FUNCTION__);