Input: atmel_mxt_ts - use client name for irq
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 28 Jun 2012 13:08:03 +0000 (21:08 +0800)
committerHenrik Rydberg <rydberg@euromail.se>
Fri, 29 Jun 2012 13:58:02 +0000 (15:58 +0200)
The atmel_mxt_ts driver can support multiple devices simultaneously.
Use the i2c_client name instead of the driver name when requesting an
interrupt to make the different interrupts distinguishable in
/proc/interrupts and top.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
drivers/input/touchscreen/atmel_mxt_ts.c

index b1108cae73ac9157a52702cb2bef70609d13c670..8b33f3ae4eba76574a215885bb3180e8b260a413 100644 (file)
@@ -1154,7 +1154,7 @@ static int __devinit mxt_probe(struct i2c_client *client,
                goto err_free_object;
 
        error = request_threaded_irq(client->irq, NULL, mxt_interrupt,
-                       pdata->irqflags, client->dev.driver->name, data);
+                       pdata->irqflags, client->name, data);
        if (error) {
                dev_err(&client->dev, "Failed to register interrupt\n");
                goto err_free_object;