|
21 | 21 | /* Touchscreen commands */
|
22 | 22 | #define REG_TOUCHDATA 0x10
|
23 | 23 | #define REG_PANEL_INFO 0x20
|
24 |
| -#define REG_FIRMWARE_VERSION 0x40 |
25 | 24 | #define REG_CALIBRATE 0xcc
|
26 | 25 |
|
27 |
| -struct firmware_version { |
28 |
| - u8 id; |
29 |
| - u8 major; |
30 |
| - u8 minor; |
31 |
| -} __packed; |
32 |
| - |
33 | 26 | struct ili2xxx_chip {
|
34 | 27 | int (*read_reg)(struct i2c_client *client, u8 reg,
|
35 | 28 | void *buf, size_t len);
|
@@ -342,7 +335,6 @@ static int ili210x_i2c_probe(struct i2c_client *client,
|
342 | 335 | struct ili210x *priv;
|
343 | 336 | struct gpio_desc *reset_gpio;
|
344 | 337 | struct input_dev *input;
|
345 |
| - struct firmware_version firmware; |
346 | 338 | int error;
|
347 | 339 |
|
348 | 340 | dev_dbg(dev, "Probing for ILI210X I2C Touschreen driver");
|
@@ -389,15 +381,6 @@ static int ili210x_i2c_probe(struct i2c_client *client,
|
389 | 381 | priv->chip = chip;
|
390 | 382 | i2c_set_clientdata(client, priv);
|
391 | 383 |
|
392 |
| - /* Get firmware version */ |
393 |
| - error = chip->read_reg(client, REG_FIRMWARE_VERSION, |
394 |
| - &firmware, sizeof(firmware)); |
395 |
| - if (error) { |
396 |
| - dev_err(dev, "Failed to get firmware version, err: %d\n", |
397 |
| - error); |
398 |
| - return error; |
399 |
| - } |
400 |
| - |
401 | 384 | /* Setup input device */
|
402 | 385 | input->name = "ILI210x Touchscreen";
|
403 | 386 | input->id.bustype = BUS_I2C;
|
@@ -439,10 +422,6 @@ static int ili210x_i2c_probe(struct i2c_client *client,
|
439 | 422 | return error;
|
440 | 423 | }
|
441 | 424 |
|
442 |
| - dev_dbg(dev, |
443 |
| - "ILI210x initialized (IRQ: %d), firmware version %d.%d.%d", |
444 |
| - client->irq, firmware.id, firmware.major, firmware.minor); |
445 |
| - |
446 | 425 | return 0;
|
447 | 426 | }
|
448 | 427 |
|
|
0 commit comments