diff options
Diffstat (limited to 'drivers/input/touchscreen/mcs5000_ts.c')
-rw-r--r-- | drivers/input/touchscreen/mcs5000_ts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/touchscreen/mcs5000_ts.c b/drivers/input/touchscreen/mcs5000_ts.c index 4c28b89757f9..6ee9940aaf5b 100644 --- a/drivers/input/touchscreen/mcs5000_ts.c +++ b/drivers/input/touchscreen/mcs5000_ts.c | |||
@@ -16,10 +16,11 @@ | |||
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/i2c.h> | 18 | #include <linux/i2c.h> |
19 | #include <linux/i2c/mcs5000_ts.h> | 19 | #include <linux/i2c/mcs.h> |
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/input.h> | 21 | #include <linux/input.h> |
22 | #include <linux/irq.h> | 22 | #include <linux/irq.h> |
23 | #include <linux/slab.h> | ||
23 | 24 | ||
24 | /* Registers */ | 25 | /* Registers */ |
25 | #define MCS5000_TS_STATUS 0x00 | 26 | #define MCS5000_TS_STATUS 0x00 |
@@ -104,7 +105,7 @@ enum mcs5000_ts_read_offset { | |||
104 | struct mcs5000_ts_data { | 105 | struct mcs5000_ts_data { |
105 | struct i2c_client *client; | 106 | struct i2c_client *client; |
106 | struct input_dev *input_dev; | 107 | struct input_dev *input_dev; |
107 | const struct mcs5000_ts_platform_data *platform_data; | 108 | const struct mcs_platform_data *platform_data; |
108 | }; | 109 | }; |
109 | 110 | ||
110 | static irqreturn_t mcs5000_ts_interrupt(int irq, void *dev_id) | 111 | static irqreturn_t mcs5000_ts_interrupt(int irq, void *dev_id) |
@@ -163,7 +164,7 @@ static irqreturn_t mcs5000_ts_interrupt(int irq, void *dev_id) | |||
163 | 164 | ||
164 | static void mcs5000_ts_phys_init(struct mcs5000_ts_data *data) | 165 | static void mcs5000_ts_phys_init(struct mcs5000_ts_data *data) |
165 | { | 166 | { |
166 | const struct mcs5000_ts_platform_data *platform_data = | 167 | const struct mcs_platform_data *platform_data = |
167 | data->platform_data; | 168 | data->platform_data; |
168 | struct i2c_client *client = data->client; | 169 | struct i2c_client *client = data->client; |
169 | 170 | ||
@@ -255,7 +256,6 @@ static int __devexit mcs5000_ts_remove(struct i2c_client *client) | |||
255 | free_irq(client->irq, data); | 256 | free_irq(client->irq, data); |
256 | input_unregister_device(data->input_dev); | 257 | input_unregister_device(data->input_dev); |
257 | kfree(data); | 258 | kfree(data); |
258 | i2c_set_clientdata(client, NULL); | ||
259 | 259 | ||
260 | return 0; | 260 | return 0; |
261 | } | 261 | } |