浏览代码

Input: cy8ctmg110_ts - set reset_pin and irq_pin from platform data

The implementation in cy8ctmg110_probe() does not properly set reset_pin
and irq_pin from platform data. Let's fix it.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Axel Lin 14 年之前
父节点
当前提交
2c204109ec
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/input/touchscreen/cy8ctmg110_ts.c

+ 2 - 0
drivers/input/touchscreen/cy8ctmg110_ts.c

@@ -193,6 +193,8 @@ static int __devinit cy8ctmg110_probe(struct i2c_client *client,
 
 
 	ts->client = client;
 	ts->client = client;
 	ts->input = input_dev;
 	ts->input = input_dev;
+	ts->reset_pin = pdata->reset_pin;
+	ts->irq_pin = pdata->irq_pin;
 
 
 	snprintf(ts->phys, sizeof(ts->phys),
 	snprintf(ts->phys, sizeof(ts->phys),
 		 "%s/input0", dev_name(&client->dev));
 		 "%s/input0", dev_name(&client->dev));