input: migor_ts compile and detection fix

The i2c layer got changed while the migor_ts driver was in the input
tree waiting to get merged upstream. Fix current compile issue by using
struct i2c_client member "name" instead of "driver_name". Also, add
id_table to make sure the device gets properly detected.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by Magnus Damm and committed by Paul Mundt b6ce9ad0 2fc91882

+9 -2
+9 -2
drivers/input/touchscreen/migor_ts.c
··· 173 173 input_set_abs_params(input, ABS_X, 95, 955, 0, 0); 174 174 input_set_abs_params(input, ABS_Y, 85, 935, 0, 0); 175 175 176 - input->name = client->driver_name; 176 + input->name = client->name; 177 177 input->id.bustype = BUS_I2C; 178 178 input->dev.parent = &client->dev; 179 179 ··· 192 192 goto err1; 193 193 194 194 error = request_irq(priv->irq, migor_ts_isr, IRQF_TRIGGER_LOW, 195 - client->driver_name, priv); 195 + client->name, priv); 196 196 if (error) { 197 197 dev_err(&client->dev, "Unable to request touchscreen IRQ.\n"); 198 198 goto err2; ··· 224 224 return 0; 225 225 } 226 226 227 + static const struct i2c_device_id migor_ts_id[] = { 228 + { "migor_ts", 0 }, 229 + { } 230 + }; 231 + MODULE_DEVICE_TABLE(i2c, migor_ts); 232 + 227 233 static struct i2c_driver migor_ts_driver = { 228 234 .driver = { 229 235 .name = "migor_ts", 230 236 }, 231 237 .probe = migor_ts_probe, 232 238 .remove = migor_ts_remove, 239 + .id_table = migor_ts_id, 233 240 }; 234 241 235 242 static int __init migor_ts_init(void)