diff options
author | Himanshu Aggarwal <haggarwa@codeaurora.org> | 2013-11-24 19:15:01 +0530 |
---|---|---|
committer | Abinaya P <abinayap@codeaurora.org> | 2016-09-27 15:55:44 +0530 |
commit | 12e637fc796d426df937bf00c187ef8ef40f47d0 (patch) | |
tree | 4619b32ea8edc58be86868f376686282785530e4 /drivers/input/touchscreen | |
parent | e172c0da0e5495a16cfeff7c7ba6a40dabf68968 (diff) |
input: touchscreen: Remove redundant code from Goodix driver
Remove code that reads firmware from the header file,
this feature is not supported.
Change-Id: I6c18e153ddf18667ca83d47df20c71bce6dbfa21
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/gt9xx/gt9xx.h | 5 | ||||
-rw-r--r-- | drivers/input/touchscreen/gt9xx/gt9xx_update.c | 26 |
2 files changed, 0 insertions, 31 deletions
diff --git a/drivers/input/touchscreen/gt9xx/gt9xx.h b/drivers/input/touchscreen/gt9xx/gt9xx.h index a61858853742..38487eea7b10 100644 --- a/drivers/input/touchscreen/gt9xx/gt9xx.h +++ b/drivers/input/touchscreen/gt9xx/gt9xx.h @@ -108,11 +108,6 @@ extern u16 total_len; #define GTP_DRIVER_SEND_CFG 1 #define GTP_HAVE_TOUCH_KEY 1 -/* auto updated by head_fw_array in gt9xx_firmware.h, - * function together with GTP_AUTO_UPDATE - */ -#define GTP_HEADER_FW_UPDATE 0 - #define GTP_ESD_PROTECT 0 #define GTP_WITH_PEN 0 diff --git a/drivers/input/touchscreen/gt9xx/gt9xx_update.c b/drivers/input/touchscreen/gt9xx/gt9xx_update.c index 8f093923bacd..4660b27d156c 100644 --- a/drivers/input/touchscreen/gt9xx/gt9xx_update.c +++ b/drivers/input/touchscreen/gt9xx/gt9xx_update.c @@ -36,11 +36,6 @@ #include <linux/workqueue.h> #include <linux/kernel.h> -#if GTP_HEADER_FW_UPDATE -#include <linux/namei.h> -#include <linux/mount.h> -#endif - #define FIRMWARE_NAME_LEN_MAX 256 #define GUP_REG_HW_INFO 0x4220 @@ -635,26 +630,6 @@ static s8 gup_update_config(struct i2c_client *client, return ret; } -#if GTP_HEADER_FW_UPDATE -static u32 gup_get firmware_file(struct i2c_client, - struct st_update_msg *msg, u8 *path) -{ - if (sizeiof(header_fw_array) < (FW_HEAD_LENGTH + - FW_SECTION_LENGTH * 4 + - FW_DSP_ISP_LENGTH + - FW_DSP_LENGTH + - FW_BOOT_LENGTH)) { - dev_err(&client->dev, - "INVALID header_fw_array"); - return -EINVAL; - } - msg->fw_data = (u8 *)header_fw_array; - msg->fw_len = sizeof(header_fw_array); - dev_dbg(&client->dev, "Found firmware from header file, len=%d", - msg->fw_len); - return 0; -} -#else static s32 gup_get_firmware_file(struct i2c_client *client, struct st_update_msg *msg, u8 *path) { @@ -682,7 +657,6 @@ static s32 gup_get_firmware_file(struct i2c_client *client, release_firmware(fw); return 0; } -#endif static u8 gup_check_firmware_name(struct i2c_client *client, u8 **path_p) |