Input: cy8ctmg110_ts - set reset_pin and irq_pin from platform data
authorAxel Lin <axel.lin@gmail.com>
Tue, 19 Jul 2011 00:09:37 +0000 (17:09 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 19 Jul 2011 00:10:27 +0000 (17:10 -0700)
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>
drivers/input/touchscreen/cy8ctmg110_ts.c

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